Commit Graph

9790 Commits

Author SHA1 Message Date
Oliver
68f7887379 Related parts are now created via the API 2021-11-25 14:23:27 +11:00
Oliver
2065c05519 Adds API endpoints and serializers 2021-11-25 14:18:21 +11:00
Oliver
a532babde8 Related part table now uses "loadPartTable" function call 2021-11-25 14:13:49 +11:00
Oliver
b497569228 Add Part list API filter for "related" status
- Adds "related" filter
- Adds "exclude_related" filter
2021-11-25 14:00:04 +11:00
Oliver
97d4107dcc
Merge pull request #2358 from matmair/matmair/issue2353
[FR] testing language
2021-11-25 13:28:12 +11:00
Oliver
ae6ac2ae24
Merge pull request #2360 from matmair/add-translations
Add some missing parts of the UI to translations
2021-11-25 13:27:50 +11:00
Matthias
7ed5338fe9
add some missing parts of the UI to translations 2021-11-25 01:09:36 +01:00
Matthias
0448744f56
[FR] testing language
Fixes #2353
2021-11-24 23:07:48 +01:00
Oliver
749f5e8f9a
Merge pull request #2357 from SchrodingersGat/auto-fill-supplier
Auto-complete 'manufacturer-part' field for supplier-part form
2021-11-24 13:40:38 +11:00
Oliver
201911be05 Auto-complete 'manufacturer-part' field for supplier-part form 2021-11-24 12:46:49 +11:00
Oliver
a13fe1f572 Adds "stock" column to substitute parts dialog 2021-11-24 12:36:10 +11:00
Oliver
28dc417a9f Add unit testing for 'validated' filter 2021-11-24 10:52:20 +11:00
Oliver
568e606d5b Fix filtering by 'validated' parameter 2021-11-24 10:45:48 +11:00
Oliver
c04ea3e0bb Adds unit test for "validated" filter option on BomItem list 2021-11-24 10:41:19 +11:00
Matthias
8fddf66618
remove unneeded TODO 2021-11-23 23:40:52 +01:00
Matthias
8236c51827
PEP fix 2021-11-23 18:42:41 +01:00
Matthias
6eee332da8
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-23 18:39:51 +01:00
Matthias Mair
565fad30d7
Merge branch 'inventree:master' into webhooks 2021-11-23 18:27:09 +01:00
Oliver
e53e3b4a51
Merge pull request #2350 from matmair/matmair/issue2347
Fix sidebar translation
2021-11-23 12:57:11 +11:00
Matthias
0733d9940f
fix ci files 2021-11-23 00:42:21 +01:00
Matthias
d884e62be1
[FR] Confirm to W293
Fixes #2335
2021-11-23 00:28:23 +01:00
Matthias
d79e9a62b4
fix trans tags 2021-11-22 23:42:29 +01:00
Matthias
2acee580c9
fix template for sidebar_item 2021-11-22 20:42:10 +01:00
Matthias
9556cd594b
fix sidebar_header template -> remove trans 2021-11-22 20:41:31 +01:00
Matthias
c20afad84d
replace sidebar_links 2021-11-22 20:40:01 +01:00
Matthias
72da18719f
fix sidebar header 2021-11-22 20:24:38 +01:00
Matthias
933c420844
fix sidebar translation
Fixes #2347
2021-11-22 20:24:22 +01:00
Matthias
aae0018a72
stop CI failing 2021-11-22 03:02:03 +01:00
Matthias
3050bb0703
higher retry threshold + better logging 2021-11-22 02:46:03 +01:00
Matthias
395573ca5b
do not trigger reload 2021-11-22 01:55:21 +01:00
Matthias
40dafb7fda
PEP fix 2021-11-22 01:36:37 +01:00
Matthias
1efdf16f92
only reload one 2021-11-22 01:30:04 +01:00
Matthias
3920108d83
do not reload whe currently loading 2021-11-22 01:28:36 +01:00
Matthias
d54bbf562b
remove redundant loggin 2021-11-22 01:06:12 +01:00
Matthias
4b98ea27ce
better format 2021-11-22 00:52:51 +01:00
Matthias
c496076505
check if file plugin was disabled 2021-11-22 00:52:42 +01:00
Matthias
38eaca1104
fix path prefixes 2021-11-22 00:48:46 +01:00
Matthias
e5d474fa0b
always set flag 2021-11-22 00:17:35 +01:00
Matthias
adc058c8b4
only reload once - even if forced 2021-11-22 00:17:04 +01:00
Matthias
a1b821bf78
just use the default failing mechanism 2021-11-22 00:16:43 +01:00
Matthias
c3e4a56021
always reset plugin modules on collection 2021-11-22 00:16:09 +01:00
Matthias
8e7c96626f
that statement is quite important 2021-11-21 23:57:45 +01:00
Matthias
f71b40e031
also handle errors on internal plugins 2021-11-21 23:51:36 +01:00
Matthias
2e28bb225f
fix broken integration plugin def 2021-11-21 23:50:54 +01:00
Matthias
87947c582d
always log error 2021-11-21 23:48:33 +01:00
Matthias
7782a22f38
make plugin init safe 2021-11-21 23:46:54 +01:00
Matthias
bd67285314
PEP fixes 2021-11-21 22:11:18 +01:00
Matthias
c828da284c
fix tests to really hit admin actions 2021-11-21 22:04:22 +01:00
Matthias
03e5279ec0
PEP fixes 2021-11-21 20:23:43 +01:00
Matthias
bafbebb634
test plugin save action 2021-11-21 20:22:44 +01:00
Matthias
75a8b88a92
now it should test 2021-11-21 20:14:17 +01:00
Matthias
211a8e27e6
use pluginreg to reload everywhere 2021-11-21 20:13:58 +01:00
Matthias
4e6e87d950
fix test limitition 2021-11-21 19:19:44 +01:00
Matthias
6b7ea10ba2
PEP fix 2021-11-21 19:18:37 +01:00
Matthias
6533457400
always drop out of maintenance on startup 2021-11-21 19:08:01 +01:00
Matthias
59a1047d41
add admin action test 2021-11-21 18:59:43 +01:00
Oliver
32a8d247e2 Fix for BomItem import in admin page 2021-11-21 22:12:58 +11:00
Matthias
ba6a7c0541
check confirm is True 2021-11-21 02:28:01 +01:00
Matthias
6b1c436135
names of plugins must be unique 2021-11-21 02:24:08 +01:00
Matthias
290e91ff79
there are many ways to be broken ... 2021-11-21 02:19:14 +01:00
Matthias
78cd10f3b9
PEP fix 2021-11-21 02:01:31 +01:00
Matthias
046ee7df06
add api test 2021-11-21 01:57:46 +01:00
Matthias
cecee032d7
streamline html templates 2021-11-21 01:21:25 +01:00
Matthias
c0e45d7b4f
remove url check wrapper
will be a seperate PR later
2021-11-21 01:16:12 +01:00
Matthias
e1dd7a17f2
use testing by default 2021-11-21 00:56:00 +01:00
Matthias
be5289ba0f
break on database error 2021-11-21 00:53:04 +01:00
Matthias
170e0e45e3
disable plugin testing by default 2021-11-21 00:04:41 +01:00
Matthias
ad76812622
PEP fix 2021-11-20 23:24:03 +01:00
Matthias
39648e545c
Add testing to detecte loops
Fixes #2308
2021-11-20 23:18:45 +01:00
Matthias
2f739bfbfa
fix test assertation 2021-11-20 21:10:20 +01:00
Matthias
d17af9eae7
PEP fixes 2021-11-20 21:03:51 +01:00
Matthias
65226bad1d
add template tag tests 2021-11-20 20:00:35 +01:00
Matthias
33bc77e138
small docstring changes 2021-11-20 19:46:38 +01:00
Matthias
e7babfbb7c
remove invalid tests 2021-11-20 19:27:53 +01:00
Matthias
7a65520252
move import of integration plugins into registry 2021-11-20 19:25:40 +01:00
Matthias
06e5430948
refactor 2021-11-20 18:40:46 +01:00
Matthias
71f74f9cc4
move globalsettings mixin reg to registry 2021-11-20 18:39:24 +01:00
Matthias
b1fbac925d
move stacks to registry 2021-11-20 18:26:41 +01:00
Matthias
8fbbcb3a8d
better readability 2021-11-20 18:13:33 +01:00
Matthias
5f180b61e9
and another flag moved 2021-11-20 18:11:20 +01:00
Matthias
308348f051
move flags 2021-11-20 18:07:05 +01:00
Matthias
3aa40ce3e9
move settings to registry 2021-11-20 18:01:19 +01:00
Matthias
8ac41970ad
simpler imports 2021-11-20 17:46:50 +01:00
Matthias
e762ec676d
simplify imports 2021-11-20 17:29:06 +01:00
Matthias
8d2ad4da2e
set up cleaner import paths 2021-11-20 17:17:36 +01:00
Matthias
e90b69262a
fix import 2021-11-20 17:12:12 +01:00
Matthias
098116675a
move git stuff to the helpers 2021-11-20 17:03:10 +01:00
Matthias
5f83fd007f
more structure 2021-11-20 17:02:27 +01:00
Matthias
076cca5e62
add TODO for dependency 2021-11-20 16:43:39 +01:00
Matthias
b596e4f164
remove unneeded stuff from broken sample
and optimize for coverage
2021-11-20 16:37:54 +01:00
Matthias
ebe5993a45
refactor registry into own class and file 2021-11-20 16:31:02 +01:00
Matthias
8a2a06955f
small fixes 2021-11-20 15:49:02 +01:00
Matthias
d8963fd5b1
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-20 13:50:13 +01:00
Matthias
67fa4cc119
PEP fix 2021-11-20 13:44:31 +01:00
Matthias
57aefc8100
wrapper to log failing urls 2021-11-20 13:37:16 +01:00
Matthias
e925095503
pack logging into custom error processing 2021-11-20 13:26:37 +01:00
Matthias
008917fdef
refactor custom error raising 2021-11-20 13:20:08 +01:00
Matthias
71e05d569b
refactor plugin error processing definition 2021-11-20 13:14:18 +01:00
Matthias
b05381fcc8
rename / cleanup 2021-11-20 13:00:12 +01:00
Matthias
2f306d951f
refactor url definition into plugin 2021-11-20 12:54:51 +01:00
Matthias
4171fe42d9
docstring 2021-11-20 12:47:34 +01:00
Matthias
e82c93ffae
refactor into own helper function for plugins 2021-11-20 12:39:27 +01:00
Matthias
98b0a2995f
ignore error in borken sampel -> it should not work 2021-11-20 12:29:29 +01:00
Oliver
189db604fa
Merge pull request #2339 from matmair/protected-settings
Protected settings
2021-11-20 19:26:29 +11:00
Oliver
6a6eae7e54 Bug fix for BOM uploading
(cherry picked from commit 2e04b311306259e0ead07de9e08b3ba376caf4e4)
2021-11-20 18:10:51 +11:00
Oliver
f8aa5514ae Fix BOM export for multi-level BOMs 2021-11-20 17:44:54 +11:00
Matthias
f667367a6b
add broken plugin for testing error stack 2021-11-20 04:08:21 +01:00
Matthias
6301f06416
PEP fix 2021-11-20 04:06:15 +01:00
Matthias
12fbd92bad
conditional error stack showing 2021-11-20 04:04:52 +01:00
Matthias
0d44a4cfa5
error retrieving tag 2021-11-20 04:00:34 +01:00
Matthias
9f0882d637
move imports 2021-11-20 03:52:27 +01:00
Matthias
4b3d5b27a6
add more stack logging points 2021-11-20 03:39:47 +01:00
Matthias
9087cabe5f
refactor integration error logging into helper 2021-11-20 03:35:43 +01:00
Matthias
ebe712312c
refactor 2021-11-20 03:31:58 +01:00
Matthias
8bcdad6a8f
make startup more failsafe 2021-11-20 03:29:32 +01:00
Matthias
d36ab0d9cd
some more docs 2021-11-20 03:22:25 +01:00
Matthias
4c7d295c0e
hard reset all plugin registration mechanisms on error 2021-11-20 03:20:55 +01:00
Matthias
3dfb8167a7
refactor 2021-11-20 03:20:14 +01:00
Matthias
e70b9bd28f
more docs 2021-11-20 03:19:41 +01:00
Matthias
be24d141de
reload without integration apps if loading fails 2021-11-20 03:16:03 +01:00
Matthias
e301971159
keep reloading save
- wrap reloading
- throw custom error
- log custom error in loading function
2021-11-20 03:10:47 +01:00
Matthias
0b6e9ef4c9
custom error 2021-11-20 03:05:36 +01:00
Matthias
c57393f457
refactor clean installed apps 2021-11-20 03:05:01 +01:00
Matthias
ad98c1df48
refactor registry cleaning 2021-11-20 03:03:57 +01:00
Matthias
1a6a26204e
make sure protected values are never exposed 2021-11-20 00:24:17 +01:00
Matthias
1798214cd2
add protected settings in model 2021-11-19 23:59:57 +01:00
Matthias
ce71508d8d
remove helper for webhooks 2021-11-19 23:54:42 +01:00
Matthias
87e85c8081
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 23:51:02 +01:00
Matthias
eee9047818
[FR] Two-Factor Authentication
Fixes #2201
2021-11-19 23:48:12 +01:00
Matthias
74b3cad566
fix language name
missing closing bracket
2021-11-19 23:41:15 +01:00
Matthias
91bc865887
remove webhook ruleset 2021-11-19 23:19:02 +01:00
Matthias
3fbc6890c9
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 22:58:31 +01:00
Oliver
c64c5463c8
Merge pull request #2334 from matmair/allow-no-icon
add default to icon for sidebar item
2021-11-20 08:55:03 +11:00
Matthias
4baf2971da
remove webhook apis 2021-11-19 22:53:22 +01:00
Matthias
d4939e058c
remove admin 2021-11-19 22:52:42 +01:00
Matthias
d57fc5392b
remove model 2021-11-19 22:52:29 +01:00
Matthias
03f343a368
remve tests 2021-11-19 22:50:55 +01:00
Matthias
6563c340dd
remove url 2021-11-19 22:50:42 +01:00
Matthias
f6ff6c3e68
remove webhook migrations 2021-11-19 22:49:24 +01:00
Matthias
e59cf2e636
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 22:43:48 +01:00
Matthias
260c51f6fc
Pulls out the webhook dev for partial merge
Fixes #2036
2021-11-19 22:35:28 +01:00
Oliver
6a235c9f15
Merge pull request #2333 from matmair/multiple-admin-btn
allow admin buttons to be assigned by class
2021-11-20 08:27:26 +11:00
Matthias
7dad2b02f0
add default to icon for sidebar item 2021-11-19 22:22:19 +01:00
Matthias
70916bb11f
allow admin buttons to be assigned by class 2021-11-19 21:53:08 +01:00
Matthias
512c73a59e
make diffs for extending middleware cleaner 2021-11-19 21:51:57 +01:00
Oliver
1460c73637 Add es_MX language translation 2021-11-19 07:44:33 +11:00
Matthias
8cab974893
send command as string 2021-11-18 16:38:31 +01:00
Matthias
e5d0380356
PEP fixes
finishes work for #2318
2021-11-18 16:35:16 +01:00
Matthias
d750e9e191
reorder fields 2021-11-18 16:26:31 +01:00
Matthias
a617b8b158
fix spelling 2021-11-18 16:26:07 +01:00
Matthias
0ece82c812
add labels / helptexts to serializer 2021-11-18 16:25:49 +01:00
Matthias
efa2ad542d
add refactor 2021-11-18 16:19:46 +01:00
Matthias
6ab0e68000
remove unneeded imports 2021-11-18 16:18:08 +01:00
Matthias
3af426bdd7
allow empty values -> submition from form 2021-11-18 16:17:47 +01:00
Matthias
37f14f537a
make sure bool for maintenance sate 2021-11-18 16:17:26 +01:00
Matthias
5dbc5d141a
add plugin install button 2021-11-18 16:16:25 +01:00
Oliver
521ec4f1e6 Merge branch 'master' into partial-shipment
# Conflicts:
#	InvenTree/order/serializers.py
2021-11-18 23:43:36 +11:00
Oliver
7399333256
Merge pull request #2328 from SchrodingersGat/stock-item-create-fix
Record the user information when creating or updating a stock item
2021-11-18 23:34:41 +11:00
Oliver
7d80387f3c
Merge pull request #2329 from SchrodingersGat/bom-quantity-fix
Bom quantity fix
2021-11-18 23:24:44 +11:00
Oliver
15a0d260f8 Handle case where user is not specified 2021-11-18 23:15:40 +11:00
Matthias
5aa146127c
PEP fix 2021-11-18 13:13:59 +01:00
Oliver
7ca36a092e convert remaining serializers 2021-11-18 23:01:19 +11:00
Oliver
c3fb6a6861 Convert BOM quantity field to new field class 2021-11-18 22:50:37 +11:00
Matthias
000adb357d
refactor plugin urls into plugin dir 2021-11-18 12:50:22 +01:00
Oliver
1bde26a7be Copy 'help_text' through from the model field if it is not defined for the serializer field 2021-11-18 22:48:22 +11:00
Oliver
35bd6ce927 Adds a new custom serializer field - InvenTreeDecimalField
- Fixes a number of problems with using FloatField
2021-11-18 22:17:58 +11:00
Matthias
a95b298c62
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-18 11:37:11 +01:00
Oliver
bfb32f3bf6 Record the user information when creating or updating a stock item 2021-11-18 21:26:26 +11:00
Oliver
b726df3a5e style fixes 2021-11-18 20:57:44 +11:00
Oliver
6dafedd0f3 Adjust login screen 2021-11-18 20:55:10 +11:00
Oliver
cac77ed134 Hide account edit actions in demo mode 2021-11-18 20:37:08 +11:00
Oliver
2a5b882a25 Navbar updates
- Display "demo mode" with link to docs
- Remove "admin" menu action
2021-11-18 20:34:50 +11:00
Oliver
1f5e4a1e6b Adds a template tag for testing if the server is running in demo mode 2021-11-18 20:17:27 +11:00
Oliver
4aeac79ba5 Remove very old unused file 2021-11-18 20:08:24 +11:00
Oliver
0dd3389518 Read "DEMO_MODE" into settings.py 2021-11-18 19:59:14 +11:00
Matthias
bff4623a15
refactor 2021-11-18 01:48:03 +01:00
Matthias
95fbc27f10
PEP fixes 2021-11-18 01:46:27 +01:00
Matthias
cbcab9498a
override return behaviour 2021-11-18 01:36:37 +01:00
Matthias
392b7a4683
fix vcs check 2021-11-18 01:30:31 +01:00
Matthias
4effd76ca0
spellfix 2021-11-18 01:24:30 +01:00
Matthias
a9fbfaf6af
add installer endpoint 2021-11-18 01:24:14 +01:00
Matthias
e728dc8fdf
add detail endpoint 2021-11-17 23:51:29 +01:00
Matthias
530227e15f
add mixins to API 2021-11-17 23:35:56 +01:00
Matthias
a996be3f5c
always slugify key 2021-11-17 23:21:05 +01:00
Matthias
b0142de421
adding API endpoints for plugins 2021-11-17 23:16:05 +01:00
Matthias Mair
958b47e58b make cols responsive 2021-11-17 19:23:40 +00:00
Matthias Mair
df9d83b3d6 make tables responsive 2021-11-17 19:23:12 +00:00
Oliver
1c8b134ede Add part category link to stock item detail page 2021-11-17 22:29:59 +11:00
Oliver
2d9f7364fd Fix action buttons for "company" page 2021-11-17 21:10:32 +11:00
Oliver
5e04f2acf3 Merge remote-tracking branch 'inventree/master' into partial-shipment 2021-11-17 20:53:26 +11:00
Oliver
9c3b04f771 Adds fallback value if status code color is not defined 2021-11-17 14:09:20 +11:00
Matthias
e97af4c074
Revert "remove unneeded file"
This reverts commit 8af4e81b42.
2021-11-17 02:21:28 +01:00
Matthias
8af4e81b42
remove unneeded file 2021-11-17 02:19:06 +01:00
Matthias
fe96d07c1e
log lookup error 2021-11-17 02:07:29 +01:00
Matthias
4ab464dc9e
refactor for debug if lookups fail 2021-11-17 02:07:13 +01:00
Matthias
0f321b8e83
turns out we needed that 2021-11-17 02:03:03 +01:00
Matthias
e121ad374b
more safer = more better ::inno: 2021-11-17 02:02:47 +01:00
Matthias
4513ad5ab6
and this also 2021-11-17 02:02:23 +01:00
Matthias
6c5dd2a5a4
and safety here too 2021-11-17 01:59:30 +01:00
Matthias
7c9ba1007d
refactor 2021-11-17 01:51:47 +01:00
Matthias
c3ea0f0704
indentations fix 2021-11-17 01:51:13 +01:00
Matthias
3d2648ffb2
make deactivaton safe
even if apps were not loaded rigth
2021-11-17 01:51:05 +01:00
Matthias
8708279629
some more docs 2021-11-17 01:46:22 +01:00
Matthias
a7279ce43e
streamlining 2021-11-17 01:46:12 +01:00
Matthias
b563bbee00
fixes for reloading contrib apps 2021-11-17 01:45:48 +01:00
Matthias
5c74141588
fully unregister app 2021-11-17 01:44:19 +01:00
Oliver
9614963f16 Put function into migration file 2021-11-17 08:58:32 +11:00
Oliver
d217fa4d9f Reduce size of splash screen image 2021-11-16 20:09:38 +11:00
Oliver
db009189ca remove unused function 2021-11-16 20:07:16 +11:00
Oliver
192cfb80b0 Merge remote-tracking branch 'inventree/master' into partial-shipment
# Conflicts:
#	InvenTree/InvenTree/version.py
2021-11-16 17:06:38 +11:00
Matthias
b0f315dcba
add missing migration 2021-11-16 00:41:08 +01:00
Matthias
40cf7869d3
refactor mixin locations 2021-11-16 00:40:49 +01:00
Matthias
2188025a93
refactor meta names 2021-11-16 00:23:23 +01:00
Matthias
53422517ed
PEP fixes 2021-11-16 00:21:14 +01:00
Matthias
65764effbb
add verbose names to model 2021-11-16 00:21:03 +01:00
Matthias
aec6a58cad
add filter to admin 2021-11-16 00:18:06 +01:00
Matthias
f460780e39
reorder list display 2021-11-16 00:17:44 +01:00
Matthias
bc79778639
refactor 2021-11-16 00:14:44 +01:00
Matthias
1794fb8865
check if you the plugins really need to be reloaded 2021-11-16 00:12:58 +01:00
Matthias
3b0a004d6e
update docsstrings 2021-11-16 00:09:38 +01:00
Matthias
35d2259edf
added settings actions 2021-11-16 00:05:53 +01:00
Matthias
e52dd4828a
customize 503 2021-11-15 23:48:49 +01:00
Matthias
b783ec566c
add maintenance mode 2021-11-15 22:07:30 +01:00
Oliver
20941ce00b JS linting 2021-11-16 00:15:18 +11:00
Oliver
5b0a2576f6 additional filters for "used-in" table 2021-11-16 00:04:06 +11:00
Oliver
6367f1a9ed Improve titles in table 2021-11-16 00:00:52 +11:00
Oliver
e36b4458bd PEP fixes 2021-11-15 23:58:34 +11:00
Oliver
ca3c3685fe Tweaks 2021-11-15 23:51:21 +11:00
Oliver
c367fd7941 Fixes multiple issues for "used in" table 2021-11-15 23:51:02 +11:00
Oliver
01da889c46 Add ability to search "partparametertemplate" API by "name" field 2021-11-15 23:31:56 +11:00
Oliver
66032ea77a Indicate that a BOM item is inherited in the "uses" table 2021-11-15 23:14:13 +11:00
Oliver
f3782ae8bc visual improvements for table filter elements 2021-11-15 23:13:58 +11:00
Oliver
d5ebdd035e Search button fix 2021-11-15 23:06:15 +11:00
Oliver
0b487c6111 "used in" table now accommodates "inherited" BOMs 2021-11-15 23:00:05 +11:00
Oliver
00dc7dafe1 Construct "used in" table 2021-11-15 22:39:58 +11:00
Oliver
a9852355c4 Add a unit test 2021-11-15 22:28:09 +11:00
Oliver
1f997d07b6 Update BOM API to allow filtering by "uses" 2021-11-15 22:16:13 +11:00
Matthias
45167fe2f0
PEP fixes 2021-11-15 07:47:52 +01:00
Matthias
7129a35900
add todo regarding reload safety 2021-11-15 02:20:37 +01:00
Matthias
35e211e330
this was for finding a testing error 2021-11-15 02:11:28 +01:00
Matthias
84ea56a8f2
docstrings should be manadtory 2021-11-15 02:11:12 +01:00
Matthias
dbfe0d39ea
this is simpler to read 2021-11-15 02:10:57 +01:00
Matthias
1aafec7107
PEP fixes 2021-11-15 02:10:43 +01:00
Matthias
c41f16837d
remove blocking condition 2021-11-15 02:06:38 +01:00
Matthias
81335ee1d5
clear url caches 2021-11-15 02:05:57 +01:00
Matthias
87edbf7c33
unresgister models when deactivating 2021-11-15 01:01:55 +01:00
Matthias
65ff226b90
remove debug messages 2021-11-15 01:01:01 +01:00
Oliver
dad097a3ba Merge remote-tracking branch 'inventree/master' into partial-shipment 2021-11-15 10:55:17 +11:00
Matthias
d2a34b83c6
clear settings reliably 2021-11-15 00:21:47 +01:00
Matthias
84a675ae39
update urls too 2021-11-15 00:10:05 +01:00
Matthias
5b04f812a9
refactor 2021-11-15 00:04:56 +01:00
Matthias
47bb9466b7
fix initial startup phase 2021-11-14 23:49:00 +01:00
Matthias
eb02a85154
fix indentation 2021-11-14 23:09:42 +01:00
Matthias
9ecf9603d6
load django internal reloading mechanisms 2021-11-14 23:08:28 +01:00
Matthias
f13507e23c
refactor 2021-11-14 22:16:45 +01:00
Matthias
fd5939d233
simplify function 2021-11-14 22:14:50 +01:00
Matthias
6922e24237
refactor and doc 2021-11-14 22:08:57 +01:00
Matthias
d586d6225c
more struc 2021-11-14 22:02:14 +01:00
Matthias
c059583b08
add live reloading 2021-11-14 22:01:00 +01:00
Matthias
e3d334f467
remove debug message 2021-11-14 02:45:59 +01:00
Matthias
8faed72278
make db setting fetching safe 2021-11-14 02:03:56 +01:00
Matthias
4abb23963a
log if db not loaded 2021-11-14 01:59:47 +01:00
Matthias
01cf848fbb
fix wrong set settings 2021-11-14 01:53:35 +01:00
Matthias
4ac5895822
compare ordered 2021-11-14 01:33:07 +01:00
Matthias
990ad95c13
fix global settings test 2021-11-14 01:32:44 +01:00
Matthias
013e8ab3bd
disable IntegrationPlugin loading from setup hook in testing 2021-11-14 01:12:23 +01:00
Matthias
1391df7236
fix test for global settings 2021-11-14 00:49:00 +01:00
Matthias
4e90f79525
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-14 00:24:47 +01:00
Matthias
b10492f088
rename global settings objects 2021-11-14 00:24:32 +01:00
Matthias
11c3ac8bf8
make id fields in plugins read_only
Fixes #2305
2021-11-13 23:40:14 +01:00
Oliver
29ba9d06a3 Adds language support for portugese 2021-11-13 22:47:15 +11:00
Matthias
b79f0052a4
assert that plugin testing is enabled 2021-11-13 02:02:01 +01:00
Matthias
ff3d9e373c
change order back 2021-11-13 02:00:59 +01:00
Matthias
cebd729fac
PEP fix 2021-11-13 01:43:07 +01:00
Matthias
357f63180f
add settings url 2021-11-13 01:40:05 +01:00
Matthias
c850269bd7
log testing state 2021-11-13 01:39:41 +01:00
Matthias
2638ef046d
own flag to enable plugin testing 2021-11-13 01:39:22 +01:00
Matthias
860c56e4ca
remove helper 2021-11-13 01:36:31 +01:00
Matthias
9d3aab58d7
fix loading dir 2021-11-13 01:29:17 +01:00
Matthias
28af5dc128
add regions for easier code nav 2021-11-13 01:26:26 +01:00
Matthias
367c37bbaf
remove setup helper as it is not needed anymore 2021-11-13 01:25:41 +01:00
Matthias
5272b56d04
activate plugins if testing 2021-11-13 01:15:20 +01:00
Matthias
6015de1cd9
fix assertion inp 2021-11-13 01:10:00 +01:00
Matthias
6d47364e06
fix list equal 2021-11-13 00:52:10 +01:00
Matthias
ea277c2ad6
fix url 2021-11-13 00:45:10 +01:00
Matthias
ab2d758a38
save db reference 2021-11-13 00:37:36 +01:00
Matthias
7e478c332a
enable multiple admin buttons on one page 2021-11-13 00:37:18 +01:00
Matthias
8c82d2f900
fix test 2021-11-13 00:02:47 +01:00
Matthias
938f8bab2d
activate plugins before testing 2021-11-12 17:44:35 +01:00
Matthias
c612cfcfba
mark restart required in the settings 2021-11-12 08:03:25 +01:00
Matthias
e542a8f8e3
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-12 07:51:25 +01:00
Oliver
1deb0f2c1b
Merge pull request #2296 from SchrodingersGat/requires-restart
Requires restart
2021-11-12 16:02:31 +11:00
Oliver
a470181ac6 Style fixes 2021-11-12 15:42:53 +11:00
Matthias
da7dd0a4ac
PEP fix 2021-11-12 02:39:06 +01:00
Matthias
9ae8474ed9
fix test 2021-11-12 02:34:18 +01:00
Matthias
aa0237723a
refactor a bit more 2021-11-12 02:32:17 +01:00
Matthias
0e6f203660
refactor plugin loading 2021-11-12 02:26:10 +01:00
Matthias
175b6ca053
admin buttons for plugins 2021-11-12 02:14:49 +01:00
Matthias
6e34119f85
nicer model name 2021-11-12 02:05:41 +01:00
Matthias
6de0a211f7
catch if db not migrated 2021-11-12 02:04:52 +01:00
Matthias
55b4ba6207
show inactive plugins in ui 2021-11-12 01:54:35 +01:00
Matthias
b706ed2312
keep inactive plugins 2021-11-12 01:54:03 +01:00
Oliver
1a994a47ea
Merge pull request #2297 from eeintech/bs5_dark_reader
Updated Dark Reader CSS for BS5
2021-11-12 11:26:15 +11:00
Matthias
4dc1ae4f5f
log stages 2021-11-12 01:22:35 +01:00
Matthias
36c0fad8e1
check if plugin is enabled 2021-11-12 01:12:13 +01:00
Matthias
8ef7a813ec
refactor to plugin app config 2021-11-12 01:07:18 +01:00
Matthias
685d3df6d1
Enable / Disable Plugins
Fixes #2292
2021-11-12 00:46:47 +01:00
Matthias
ae5031e997
refactor internal names 2021-11-12 00:13:12 +01:00
Matthias
61f6061edf
adding in license meta 2021-11-12 00:12:03 +01:00
Matthias
b2478b418a
"description" field for plugin
Fixes #2293
2021-11-12 00:09:05 +01:00
Matthias
65046df417
display path in plugin details
Fixes #2294
2021-11-12 00:00:43 +01:00
Matthias
1535fc0565
refactor is_package 2021-11-11 23:55:34 +01:00
Matthias
689b414d62
show info if no version exists
Fixes #2295
2021-11-11 23:32:22 +01:00
Matthias
3be21c59ec
remove default listing without a key 2021-11-11 23:07:46 +01:00
Matthias
5bb3a95699
Fix theme selector
Fixes #2298
2021-11-11 23:04:16 +01:00
Matthias
1ff9edf490
move theme selection
#2299
2021-11-11 15:54:57 +01:00
eeintech
a810708336 Updated Dark Reader color theme CSS after Bootstrap 5 port 2021-11-11 08:02:12 -05:00
Matthias
99f65d242e
fix test path 2021-11-11 13:25:07 +01:00
Matthias
796b2a059d
move tempalte tags to plugin 2021-11-11 13:10:12 +01:00
Matthias
fa36bcdbca
'safe' loading of links 2021-11-11 13:00:20 +01:00
Oliver
03aa9bc9b0 Tweaks for settings admin views 2021-11-11 22:39:31 +11:00
Matthias
36591a5f6e
fix link 2021-11-11 12:33:11 +01:00
Oliver
d4db750d2f Clear the SERVER_RESTART_REQUIRED flag automatically when the server reloads 2021-11-11 22:26:46 +11:00
Oliver
cacc272424 Display a wanring message if server restart is required 2021-11-11 22:22:39 +11:00
Matthias
112e04381e
fix badges 2021-11-11 12:20:22 +01:00
Matthias
ab1742da64
remove reduntant block 2021-11-11 12:19:11 +01:00
Matthias
b4faaa7a46
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-11 12:18:13 +01:00
Oliver
626637a06a Add "hidden" property to global settings
- Allows certain settings to be hidden from the javascript files
2021-11-11 22:16:46 +11:00
Oliver
2f3772f3bf define "requires_restart" function for global setting 2021-11-11 22:16:28 +11:00
Oliver
b17d6f932a
Merge pull request #2165 from nwns/feature/redisascache
Add support for using Redis as a cache and a broker
2021-11-11 17:08:41 +11:00
Oliver
d5cf2b08ac Merge remote-tracking branch 'inventree/master' into partial-shipment
# Conflicts:
#	InvenTree/InvenTree/version.py
#	InvenTree/order/models.py
2021-11-11 12:35:59 +11:00
Oliver
9a017d950e
Merge pull request #2288 from matmair/matmair/issue2278
Add setting for enabeling reports
2021-11-11 11:23:32 +11:00
Matthias
fcc94b3902
remove empty breadcrumb space in settings 2021-11-11 00:28:30 +01:00
Matthias
bae28e8207
Add setting for enabeling reports
Fixes #2278
2021-11-10 23:54:54 +01:00
Matthias
f9c004bd36
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-10 23:20:39 +01:00
Oliver
4a26f274af fixing silly bug I introduced 2021-11-10 14:00:30 +11:00
Oliver
1bb51a7309 Normalize "available stock" quantity before exporting 2021-11-10 13:27:59 +11:00
Oliver
ae7cde7547
Merge pull request #2281 from SchrodingersGat/stock-sort
Adds "stock" column sorting for stock table
2021-11-10 12:20:07 +11:00
Oliver
986a13864a Exclude 'serial_int' when exporting stock data 2021-11-10 11:37:30 +11:00
Oliver
919f182c25 Remove debug messages 2021-11-10 11:30:11 +11:00
Oliver
ba11a73f91 Fix for saving stock item objects 2021-11-10 11:22:58 +11:00
Oliver
bd81eba380 PEP style fixes 2021-11-10 11:13:30 +11:00
Oliver
6a534e0322 Improve options for installing a part into another part
- Allow "variant" parts when the BOM specifies that variants are allowed for a particular BOM item
2021-11-10 11:11:52 +11:00
Oliver
067f12d5eb PEP fixes 2021-11-10 11:01:12 +11:00
Oliver
25ce043337 Adjust ordering sequence for StockItem 2021-11-10 11:00:43 +11:00
Oliver
738ba4eddf Data migration to initially update serial number fields for all stock items
- Also automatically updates serial_int field when saving StockItem
2021-11-10 10:59:48 +11:00
Oliver
257be18d79 Add 'serial_int' field to stockitem model
- Allows for integer sorting of stock items
2021-11-10 10:47:17 +11:00
Matthias
d982bfe201
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-10 00:37:49 +01:00
Matthias
2835022330
merge 2021-11-10 00:30:21 +01:00
Oliver
85b906f49d Adds "stock" column sorting for stock table 2021-11-10 09:48:52 +11:00
Oliver
ab32ab0b3b
Merge pull request #2277 from SchrodingersGat/multi-report-fix
Fix for printing multiple reports at once
2021-11-10 09:26:55 +11:00
Oliver
56bf0f0487 Fix for printing multiple reports at once
(bug introduced in 79434bb)
2021-11-10 09:03:15 +11:00
Oliver
3dae0c9c1c Remove old unit test code 2021-11-10 08:48:51 +11:00
Oliver
cfb873bb4f Bug fix for loading part table without enabling grid view 2021-11-09 22:47:19 +11:00
Oliver
db31bf91e6 Improve display of "no response from server" message 2021-11-09 22:41:54 +11:00
Oliver
e303b5a39b Catch for null value for settings choices 2021-11-09 22:37:50 +11:00
Oliver
8d7b73e2a8 Adds support for "multiple choice" field 2021-11-09 22:25:42 +11:00
Oliver
721d10a9ec Allow empty URLs 2021-11-09 22:14:26 +11:00
Oliver
1e80e33634 typo fix 2021-11-09 21:49:14 +11:00
Oliver
11dd187df2 javascript linting 2021-11-09 21:43:47 +11:00
Oliver
7dce9f3f3b PEP fixes 2021-11-09 21:37:54 +11:00
Oliver
476d2545ad Remove old server-side view 2021-11-09 21:33:32 +11:00
Oliver
eb5b810be0 Update displayed setting when API returns success 2021-11-09 21:29:31 +11:00
Oliver
5df4374607 javascript for editing settings via API 2021-11-09 21:16:37 +11:00
Oliver
324335a620 Convert to "native value" in the serializer 2021-11-09 17:43:36 +11:00
Oliver
4433befbdc Add list of 'choices' (read only) to serializer
- Check that the specified value is one of the valid options (if provided)
2021-11-09 17:21:59 +11:00
Oliver
07851f0b2c Include 'setting type' in API data 2021-11-09 17:07:41 +11:00
Oliver
0374c27d7c Adds "detail" view for user setting
- Users can only view / edit their own settings
2021-11-09 16:14:10 +11:00
Oliver
f3b4f7aa28 Add "detail" view for global settings objects
- Can view and edit (but not delete)
- User must have "staff" status to access
2021-11-09 16:07:25 +11:00
Oliver
cb583eb466 Add LIST endpoint for global settngs and user settings
- Read only, cannot create new settings
- User settings filters against the user making the request
2021-11-09 15:59:09 +11:00
Oliver
30684685f9 Add unit test to check an "empty" (null) barcode can be supplied 2021-11-09 12:07:57 +11:00
Oliver
1520c296dd
Merge pull request #2270 from SchrodingersGat/navbar-fix
Fixes navbar menu positioning for smaller screens
2021-11-08 17:44:21 +11:00
Oliver
f1eaeef949 PEP fixes 2021-11-08 16:53:43 +11:00
Oliver
ca0619a482 Adds API filtering for the "user" list 2021-11-08 16:53:15 +11:00
Oliver
3d553cf7de Adds search capability to "owner" API
- Currently a bit of a hack, but it works...
2021-11-08 16:49:15 +11:00
Oliver
cb075ed2c2 Fix logic for converting stock items to applicable variants 2021-11-08 15:10:41 +11:00
Oliver
64f5007d3a Fix missing actions for stock item
(cherry picked from commit c128438ebf)
2021-11-08 14:50:03 +11:00
Oliver
35cfa387d1 Fixes navbar menu positioning for smaller screens 2021-11-08 13:38:03 +11:00
Oliver
b2ae346343 Provide model-level default function option 2021-11-08 13:30:59 +11:00
Oliver
8d5c3ab18a add extra icons for build order form 2021-11-08 13:10:33 +11:00
Oliver
9c2193a4cc
Merge pull request #2265 from matmair/matmair/issue2257
Matmair/issue2257
2021-11-08 11:10:53 +11:00
Oliver
a12baadc09
Merge pull request #2266 from SchrodingersGat/login-tweaks
Login tweaks
2021-11-08 10:19:23 +11:00
Oliver
ac97edd18b JS linting 2021-11-08 09:58:55 +11:00
Oliver
c9924470ad Replace dialog messages with alerts 2021-11-08 09:44:45 +11:00
Oliver
ef75838ab8 Properly display notifications when logging in 2021-11-08 09:34:57 +11:00
Oliver
079c08ef7d Tweaks to account screens css 2021-11-08 09:34:42 +11:00
Matthias Mair
87539c7aac select for languages should be wide enough 2021-11-06 20:59:02 +00:00
Matthias Mair
30aa072537 fix message 2021-11-06 20:49:09 +00:00
Matthias Mair
45b7bc0c51 always show the current language 2021-11-06 20:41:52 +00:00
Matthias Mair
dccc832779 fix logic 2021-11-06 20:41:29 +00:00
Matthias Mair
cea466973a Check if language has enough translations
Fixes #2257
2021-11-06 19:55:02 +00:00
Matthias Mair
857cdd5aea Enlsigh is the base - always translated!
Fixes #2257
2021-11-06 17:41:11 +00:00
Matthias Mair
bbd723a176 fix QR code alingment 2021-11-06 15:11:31 +00:00
Matthias Mair
ad5ba96278 move toggler to the end 2021-11-06 15:07:01 +00:00
Matthias Mair
19a3568511 fix nav arranging on mobile 2021-11-06 15:02:40 +00:00
Matthias Mair
d604b2afff make padding uniform 2021-11-06 14:44:46 +00:00
Matthias Mair
5550c89b9a make padding uniform 2021-11-06 14:44:31 +00:00
Oliver
42155b2e05 Adds a fancy shadow 2021-11-05 13:51:26 +11:00
Oliver
174100ed6d
Merge pull request #2260 from SchrodingersGat/sales-order-reference-fix
Check if customer exists when rendering sales order template
2021-11-05 11:23:13 +11:00
Oliver
1743111613 Check if customer exists when rendering sales order template
Fixes https://github.com/inventree/InvenTree/issues/1742
2021-11-05 11:03:38 +11:00
Oliver
f970255066
Merge pull request #2259 from SchrodingersGat/dialog-escapes
Allow escape key on barcode modal
2021-11-05 10:58:57 +11:00
Oliver
1f1cf9f9e4 Allow escape key on barcode modal 2021-11-05 10:39:03 +11:00
Oliver
bf4de526ac Typo fix 2021-11-05 10:20:47 +11:00
Matthias
df72cb2608
merge upstream 2021-11-04 23:44:41 +01:00
Matthias Mair
f5fa64d9a9
Merge branch 'inventree:master' into plugin-2037 2021-11-04 23:42:07 +01:00
Oliver
083967b156
Merge pull request #2198 from SchrodingersGat/stock-item-forms
Stock item forms
2021-11-05 07:37:33 +11:00
Matthias
f49800d5b8
make attr - test safer 2021-11-04 14:54:15 +01:00
Oliver
185924e1f8 More linting 2021-11-05 00:35:47 +11:00
Oliver
5a0ff4c077 JS linting 2021-11-05 00:32:11 +11:00
Oliver
78ac40083a Fixes for stock api unit tests
- Remove old unit tests
- Require quantity when creating a new stock item
2021-11-05 00:27:26 +11:00
Matthias
0daba629fe
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-04 14:23:17 +01:00
Matthias
2992dfdfed
remove Shopify 2021-11-04 14:21:17 +01:00
Oliver
f27acde934 More fixes
- Allow stock item creation for inactive parts
- Better handling of successful stock item creation
- Disable fields rather than hiding them
2021-11-05 00:02:55 +11:00
Matthias
80414ba6b5
make icon optional 2021-11-04 13:44:25 +01:00
Matthias
267c5ca40c
show install method for plugin 2021-11-04 13:30:40 +01:00
Matthias
99c3bc5529
make package info conditional 2021-11-04 13:21:02 +01:00
Matthias
41954fd2d6
make naming less git related 2021-11-04 13:19:08 +01:00
Oliver
b41dbba2b0 Correctly handle serialization of newly created stock 2021-11-04 23:18:59 +11:00
Oliver
3be4acf3ef More refactoring for notifications
- Adds default behaviour for successful stock item creation
2021-11-04 23:09:49 +11:00
Matthias
2fc8efbfb2
simplify syntax 2021-11-04 13:08:30 +01:00
Matthias
285e6fe93e
prepare fnc for loading metadata 2021-11-04 13:07:35 +01:00
Matthias
dd61714435
refactor 2021-11-04 13:04:02 +01:00
Matthias
c085a86891
naming refactor 2021-11-04 12:55:39 +01:00
Matthias
cb30188623
fix commit references 2021-11-04 12:49:19 +01:00
Oliver
97326d9fb2 Display stock item owner (if applicable) 2021-11-04 22:45:11 +11:00
Matthias
e654ba786f
decide where transit info is loaded from based on install method 2021-11-04 12:43:27 +01:00
Matthias
50e5bfc4a4
flag if plugin was packaged 2021-11-04 12:42:22 +01:00
Oliver
b65f950864 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 22:40:09 +11:00
Oliver
71bb6fff50 Add option to hide inactive parts in search preview window 2021-11-04 22:25:35 +11:00
Matthias
e12e93f19e
merge migrations 2021-11-04 10:27:40 +01:00
Matthias
b54f9c9c13
provide backport for 3.7 2021-11-04 10:24:05 +01:00
Matthias
a88f144239
merge fixes 2021-11-04 10:17:39 +01:00
Matthias
eea6c8675c
PEP fix 2021-11-04 10:12:30 +01:00
Matthias
363f21d6d7
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-04 10:10:58 +01:00
Oliver
ceba5b7312
Merge pull request #2249 from SchrodingersGat/search-dropdown-fix
Fixes for search auto-complete dropdown menu
2021-11-04 17:26:12 +11:00
Oliver
f0e44f0efd Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 17:24:30 +11:00
Oliver
76b5bc067a Fix notes field 2021-11-04 17:06:52 +11:00
Oliver
3ceb6f6ba8 Fix barcode input 2021-11-04 17:04:47 +11:00
Oliver
b1598cfd10 - style fixes
- add part description as mouse-over text
2021-11-04 17:02:52 +11:00
Oliver
2130b02e7f
Merge pull request #2193 from matmair/matmair/issue2181
Add missing part import fields
2021-11-04 16:54:30 +11:00
Oliver
9cfcb6579f Fixes for search auto-complete dropdown menu
- Fix rendering of badges
- Menu fills out right-to-left
2021-11-04 16:48:24 +11:00
Oliver
39d3a127e1 Template improvements 2021-11-04 16:19:57 +11:00
Oliver
3a7f8c9196 Fix comparison operator 2021-11-04 16:18:49 +11:00
Oliver
75d7530e30 Fix missing tag in template 2021-11-04 16:17:05 +11:00
Oliver
5ae6241083 Fixes for low-stock emails
- Include variant stock in test
- Improve email template
2021-11-04 16:15:11 +11:00
Oliver
3b052e6bce
Merge pull request #2247 from SchrodingersGat/tree-view-fixes
Fix for tree-view
2021-11-04 15:30:07 +11:00
Oliver
170d8d11d3
Merge pull request #2246 from SchrodingersGat/build-order-notification
Build order notification
2021-11-04 15:23:39 +11:00
Oliver
47f6a8266d Fix for tree-view
- Force "cascade" to be set
2021-11-04 15:08:22 +11:00
Oliver
42a794e8e4 Fix CI errors 2021-11-04 15:05:54 +11:00
Oliver
01191d84c5 Only run check stock function when updating an existing part 2021-11-04 14:32:42 +11:00
Oliver
99b324d1ef Add a post-save hook the "Build" model to check stock 2021-11-04 14:30:23 +11:00
Matthias
cf0c8ec2ea
remove builtin integrations 2021-11-04 03:44:48 +01:00
Matthias
7fbf25840f
fix problem with iso format dates 2021-11-04 03:44:30 +01:00
Matthias
93a28bbaba
enable setup hooks
Fixes #2218
2021-11-04 03:43:39 +01:00
Oliver
6db6a70fc2 Add task to check required stock for build order 2021-11-04 13:32:14 +11:00
Oliver
9dba3c3f10 Refactored bom export 2021-11-04 12:10:36 +11:00
Oliver
be543ca3da Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-04 10:57:40 +11:00
Oliver
3b56895f4d Merge branch 'master' into stock-item-forms 2021-11-04 10:34:49 +11:00
Oliver
b279317f89 Button style fixes 2021-11-04 10:24:47 +11:00
Oliver
4118f98d4d Display more errors 2021-11-04 10:17:38 +11:00
Oliver
b6d48cab2a Make further use of notification messages 2021-11-04 10:14:01 +11:00
Oliver
df30a85c03 More fixes:
- Add "back to site" button on logout screen
- Add favicon to account pages
- Refactor notifications / alerts / caching
2021-11-04 09:59:56 +11:00
Oliver
4e7825df13 Fix javascript issues on login screens 2021-11-04 09:26:32 +11:00
Oliver
d4a8f5823c Fix for missing template file 2021-11-04 09:13:13 +11:00
Oliver
52242e7a00 Catch error 2021-11-04 08:40:38 +11:00
Matthias
83d0693013
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-03 21:25:04 +01:00
Oliver
3a61d11f5a Adds a scheduled task to remove old notification entries from the database 2021-11-04 01:33:26 +11:00
Oliver
6c724556f1 PEP fixes 2021-11-04 01:21:08 +11:00
Oliver
a447e22108 Prevent low-stock notifications from overwhelming users
- Limit to once per day, per part
2021-11-04 01:18:00 +11:00
Oliver
bebf368d06 Add functionality and unit testing for new model 2021-11-04 01:11:42 +11:00
Oliver
1f7676ee65 Add admin entry for new model 2021-11-04 01:06:57 +11:00
Oliver
e7b93a54d8 Add new model "NotificationEntry"
- Keep track of past notifications
2021-11-04 00:55:43 +11:00
Oliver
ef2307aeaa Add new model to permissions table 2021-11-04 00:46:23 +11:00
Oliver
5542532223 Template tweaks 2021-11-04 00:44:16 +11:00
Oliver
ee7c3ae066 Update index page 2021-11-04 00:38:34 +11:00
Oliver
476a1342c1 Improve notification of 'low stock' parts:
- Traverse up the variant tree
- Enable subscription by "category"
2021-11-04 00:28:10 +11:00
Oliver
1c6eb41341 Ability to toggle part category "star" status via the API 2021-11-04 00:01:52 +11:00
Oliver
193d6b334c Add option to display "starred categories" on the index page 2021-11-03 23:29:36 +11:00
Oliver
7567b8dd63 MOAR FEATURES:
- Add admin view for PartCategoryStar
- Add starred status to partcategory API
- Can filter by "starred" status
- Rename internal functions back to using "starred" (front-end now uses the term "subscribe")
2021-11-03 23:22:31 +11:00
Oliver
f9a00b7a90 Adds extra subsctiption functionality for Part and PartCategory
- Allows variants and templates
- Allows categories and sub-categories
- Unit testing
2021-11-03 22:57:49 +11:00
Oliver
cf023e2cc1 Create new model for "PartCategory" 2021-11-03 18:10:34 +11:00
Oliver
4cf6b9bd31 Remove old function 2021-11-03 17:59:08 +11:00
Oliver
e7f6268640 Improvements for alert notifications
- Dismissable
- Delete after a certain amount of time
2021-11-03 17:55:30 +11:00
Oliver
85adf842f6 Change bullhorn icon to bell icon 2021-11-03 16:59:59 +11:00
Oliver
63ec5770f4 Merge remote-tracking branch 'inventree/master' into subscription-refactor 2021-11-03 16:55:54 +11:00
Oliver
e5435df2ba Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-03 15:46:30 +11:00
Oliver
74521b7628
Merge pull request #2239 from SchrodingersGat/more-part-details
Add more information to the "part details" tab
2021-11-03 14:18:43 +11:00
Oliver
31ea71d391 Display part category 2021-11-03 14:00:13 +11:00
Oliver
d435689562 Add more information to the "part details" tab 2021-11-03 13:57:50 +11:00
Oliver
ecccae1081 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-03 13:34:45 +11:00
Oliver
08ffa102c6 Fixes for part category table
(cherry picked from commit f7ef309995f8a52c213748f4a9226724e288c936)
2021-11-03 13:34:01 +11:00
Oliver
c4ea3ecf6f Bug fix for stock location table
(cherry picked from commit 44794d7b78520023e3b70da61dc13938bfd4bd14)
2021-11-03 13:33:57 +11:00
Oliver
08719d4d1b
Merge pull request #2236 from SchrodingersGat/badge-fix
Fix CSS for user badges
2021-11-03 12:41:10 +11:00
Oliver
b1c23e30f5 Fix CSS for user badges 2021-11-03 11:59:20 +11:00
Oliver
c636f13ba8 Template fix for BOM upload 2021-11-03 11:44:42 +11:00
Oliver
1d42d33c8e style fixes 2021-11-03 11:33:44 +11:00
Matthias
e3b02e596e
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2201 2021-11-03 00:25:39 +01:00
Oliver
be7b224f14 Adds API endpoint for serialization of stock items 2021-11-03 10:12:42 +11:00
Nigel
eecd477a34
Add redis cache to postgres testcase 2021-11-02 16:37:31 -06:00
Nigel
e8c2d4da10
Add support for using redis as a cache and a broker 2021-11-02 16:37:28 -06:00
Oliver
2b69d9c2af Correctly serialize stock when creating via the API 2021-11-03 07:41:47 +11:00
Oliver
ad4c4f2a6d Stock item duplication now works with the API forms 2021-11-03 07:28:21 +11:00
Oliver
aaf27d4098 Adds new buttons to create a new stock item 2021-11-03 07:27:58 +11:00
Oliver
d8e3c40f78 Implementing more complex behaviour for StockItem creation form 2021-11-02 23:04:10 +11:00
Oliver
ef305032c9 Create new stock location via API forms 2021-11-02 20:04:54 +11:00
Oliver
0d9c08b49c StockLocationEdit 2021-11-02 19:58:25 +11:00
Oliver
4c8bc9580c stock-item-edit is looking OK now 2021-11-02 19:51:46 +11:00
Oliver
d357e982f5 Revert stock-item detail template to mater 2021-11-02 19:43:17 +11:00
Oliver
c3c4aca829 Fix action buttons for stock-item detail page 2021-11-02 19:29:26 +11:00
Oliver
8725837460 Merge remote-tracking branch 'inventree/master' into stock-item-forms 2021-11-02 19:25:11 +11:00
Matthias
e73d3d567c
fix MFA buttons 2021-11-02 07:56:59 +01:00
Oliver
4bfdf21107 Change "star" icon to "bullhorn" icon 2021-11-02 15:07:20 +11:00
Oliver
1dea7861d0 Refactor email body out into a template
- Will be useful in the future when more email functionality is implemented
2021-11-02 14:43:57 +11:00
Oliver
e3dfb6cbc8 Improve messaging 2021-11-02 13:08:10 +11:00
Oliver
a3889c709e More tweaks 2021-11-02 12:57:40 +11:00
Oliver
fc9ca5e481 Pretty badges for email accounts 2021-11-02 12:54:41 +11:00
Oliver
ec147ea25f Further work on email settings page 2021-11-02 12:49:44 +11:00
Oliver
d1f2d960be Refactor "user account" page 2021-11-02 12:15:46 +11:00
Oliver
489d085de8 Refactor "category" settings page 2021-11-02 11:32:57 +11:00
Oliver
66b078e4b9 Refactor part settings page 2021-11-02 11:31:24 +11:00
Oliver
2abcb114a8 Visual improvements for "currency" page 2021-11-02 11:28:46 +11:00
Matthias
58f35ebc56
use buttons isntead of links 2021-11-01 23:49:22 +01:00
Matthias
70341d6745
refactor of backup tokens 2021-11-01 23:33:29 +01:00
Matthias
f8a45dcec2
back button 2021-11-01 23:23:50 +01:00
Matthias
7bcab13253
translate disable button 2021-11-01 23:19:50 +01:00
Matthias
b4570f6a7e
use alert 2021-11-01 23:11:48 +01:00
Matthias
7dbbca5b3a
fix translation 2021-11-01 23:11:41 +01:00
Matthias
4e9cf8492f
full width 2021-11-01 23:11:14 +01:00
Matthias
024a9deab4
full width buttons 2021-11-01 23:07:39 +01:00
Matthias
0011c7ee62
crispyfy 2021-11-01 23:07:27 +01:00
Matthias
240859c38c
make crispy 2021-11-01 23:03:36 +01:00
Matthias
a8f5661a27
make auth a bit wider 2021-11-01 22:59:23 +01:00
Matthias
58bc677029
more contrast for the qr 2021-11-01 22:58:47 +01:00
Matthias
6404764025
crispyfy 2021-11-01 22:51:42 +01:00
Matthias
3cb2078821
fix spelling 2021-11-01 22:46:56 +01:00
Matthias
fc0e80dd76
make remove button conditional 2021-11-01 22:45:56 +01:00
Matthias
392e7f6e4c
there can be only one factor 2021-11-01 22:43:43 +01:00
Matthias
17e7c2ee15
disable add button if already set up 2021-11-01 22:43:28 +01:00
Matthias
61d3ea6293
refactor underscore handeling into function 2021-11-01 22:33:56 +01:00
Matthias
78d9e906da
remove testing string 2021-11-01 22:28:38 +01:00
Matthias
3e3da8b2d1
fix permission parser 2021-11-01 22:23:51 +01:00
Matthias
6dead88028
fix permission parsing if underscores in perm 2021-11-01 17:06:13 +01:00
Oliver
6f9ac4a850 - Fixes for construct_absolute_url function
- Refactor notification email generation
- Update template file
- Add separate templates folder for email
2021-11-02 00:40:25 +11:00
Oliver
dabaa9aea5 Adds a function to construct an "absolute" URL
Useful for providing an external link (e.g. in an email)
2021-11-01 23:44:44 +11:00
Oliver
9cbc2b82b5
Merge pull request #2208 from rocheparadox/master
Email notification for low stock
2021-11-01 22:45:49 +11:00
Matthias
62adb95d3c
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2201 2021-11-01 12:35:25 +01:00
Matthias
33d61d8cb5
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2181 2021-11-01 12:31:35 +01:00
Oliver
a1608396cd Expand navbar spacer 2021-11-01 14:16:14 +11:00
rocheparadox
76c1e936db Added post_delete hook to StockItem
moved the business logic of 'deciding if a low stock notification has to be sent' to part.tasks
2021-11-01 08:25:59 +05:30
Oliver
2662ba1202 Merge branch 'master' into stock-item-forms 2021-11-01 12:43:32 +11:00
Oliver
f607841601 Fix navbar spacing when "sticky-header" is enabled 2021-11-01 12:07:07 +11:00
Oliver
ad0277a8c3 Merge branch 'master' into stock-item-forms
# Conflicts:
#	InvenTree/stock/serializers.py
#	InvenTree/stock/templates/stock/item_base.html
2021-11-01 12:00:40 +11:00
Oliver
94a86e52f8
Merge pull request #2224 from matmair/remove-breadrcumb-space
remove breadcrub div where no breadcrumb is added
2021-11-01 11:57:21 +11:00
Matthias Mair
05a86c863f
Update page_base.html 2021-11-01 01:38:21 +01:00
Oliver
b64f0e1f54
Merge pull request #2222 from matmair/ui-navbar
UI tweaks
2021-11-01 11:30:27 +11:00
Matthias
338e85ff52
remove breadcrub div where no breadcrumb 2021-11-01 01:09:08 +01:00
Matthias
9a346dd3e2
Revert "remove breadcrub div where no breadcrumb"
This reverts commit 2c9b03944f.
2021-11-01 01:07:13 +01:00
Matthias Mair
d89cb0936c
Merge branch 'inventree:master' into plugin-2037 2021-11-01 01:06:26 +01:00
Matthias Mair
c775d030f9
Merge branch 'inventree:master' into matmair/issue2181 2021-11-01 01:06:18 +01:00
Matthias
481a1088ee
fix adapters to use OTP 2021-11-01 01:05:29 +01:00
Matthias
9d68d6bdca
added setting to anable MFA 2021-11-01 00:34:00 +01:00
Matthias
a8e18a7972
handle modelnames / permissions with underscores 2021-11-01 00:24:57 +01:00
Matthias
fc566621b7
add rulesets 2021-11-01 00:24:21 +01:00
Matthias
b7d6ca12e8
PEP fixes 2021-11-01 00:16:30 +01:00
Matthias
8da2865299
setting sidebar header different color to items 2021-11-01 00:11:01 +01:00
Matthias
62aa014f6b
add button for navbar toogle 2021-11-01 00:09:38 +01:00
Matthias
2c9b03944f
remove breadcrub div where no breadcrumb 2021-11-01 00:08:39 +01:00
Matthias
f0a558c1e2
remove unneeded spacing 2021-11-01 00:06:08 +01:00
Matthias
d8fb6d44ec
adds faktors to user settings 2021-10-31 23:42:31 +01:00
Oliver
80e741fe1b Further improvements for filter elements 2021-11-01 09:21:42 +11:00
Oliver
1f537a50b2 Fix weird height issue for filter tag 2021-11-01 09:11:08 +11:00
Matthias
85da98a004
use auth screen to make more clear this is about security 2021-10-31 23:07:25 +01:00
Matthias Mair
037f2a9438
Merge branch 'inventree:master' into matmair/issue2181 2021-10-31 23:04:55 +01:00
Matthias Mair
0d836530e4
Merge branch 'inventree:master' into plugin-2037 2021-10-31 23:04:50 +01:00
Oliver
360f0406b5 CSS updates
- Add template for filter lists
- Filter lists now layout horizontally
- Change flex-row to flex-wrap
2021-11-01 08:38:24 +11:00
Matthias
487bab5162
cleanup 2021-10-31 14:02:24 +01:00
Matthias
9fd66e9f22
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue2201 2021-10-31 13:56:14 +01:00
Matthias
ec17bbcb95
mkaeuser setting tighter 2021-10-31 13:54:12 +01:00
Matthias
06822303bc
refactor user settings 2021-10-31 13:42:41 +01:00
Matthias
dd74cf19a7
fix middleware to not interupt flow 2021-10-31 13:42:27 +01:00
rocheparadox
60c2aab06d remove unused imports 2021-10-31 11:30:14 +05:30
rocheparadox
40da41959b Created part.tasks file and moved notify_low_stock function to the same from InvenTree.tasks. The argument type is changed from StockItem to Part
Added trans to headers of table in email template of low_stock_notification.html

added is_part_low_on_stock() function to the part model to check if the part's stock has fallen below the minimum quantity

used offload_task function to run the low stock notification function asynchronously
2021-10-31 11:26:41 +05:30
rocheparadox
fca15a0439 added arbitrary args and arbitrary keyword args while executing a function synchronously from offload_task() in inventree.tasks 2021-10-31 11:21:06 +05:30
Oliver
9057462588
Merge pull request #2212 from matmair/matmair/issue2210
Fix for actions wrapping on smaller screens
2021-10-31 09:09:27 +11:00
Matthias
199254dfe9
adjust navigation integration to new style 2021-10-30 22:35:47 +02:00
Matthias
0ae514e7be
hide breadcrumb section 2021-10-30 22:15:21 +02:00
Matthias
13cc329dc6
remove unneeded headers 2021-10-30 22:14:57 +02:00
Matthias Mair
b31a1aa4cc fix plugin rendering in settings nav 2021-10-30 18:10:56 +00:00
Matthias
703c8a31b1
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-10-30 18:23:09 +02:00
Matthias Mair
20a129f396
Merge branch 'inventree:master' into matmair/issue2181 2021-10-30 17:24:03 +02:00
Matthias Mair
6ce10736af
Merge branch 'inventree:master' into matmair/issue2210 2021-10-30 17:23:55 +02:00
Matthias Mair
108f715ef6
Merge branch 'inventree:master' into matmair/issue2213 2021-10-30 17:23:51 +02:00
rocheparadox
6ec2801fce Facilitated translation for low stock notification subject
moved the message/content of low stock notification to html template
Facilitated translation in low stock notification html template file
2021-10-30 20:32:10 +05:30
Matthias Mair
14680531f0 [BUG] Auth screens broken
Fixes #2213
2021-10-30 14:05:40 +00:00
Oliver
a151a68e58 convert sale_price to string before exporting 2021-10-31 00:05:20 +11:00
Oliver
361f4498df Fix broken tables removed by conflict 2021-10-30 23:51:59 +11:00
Oliver
eaa315e726 Merge branch 'master' into partial-shipment
# Conflicts:
#	InvenTree/build/templates/build/build_base.html
#	InvenTree/order/templates/order/order_base.html
#	InvenTree/order/templates/order/sales_order_base.html
#	InvenTree/order/templates/order/sales_order_detail.html
#	InvenTree/order/templates/order/so_navbar.html
2021-10-30 23:44:06 +11:00
Matthias Mair
6af866557d fixes missing wraping on iPdas and iPhones
Fixes #2210
2021-10-30 12:34:31 +00:00
Oliver
2bbeab38ff
Merge pull request #2205 from SchrodingersGat/bootstrap-5
Bootstrap 5
2021-10-30 23:03:12 +11:00
Oliver
75c8faa09f Tweaks 2021-10-30 22:30:04 +11:00
Oliver
638c9d4007 Enable bootstrap-5 theme for select2 2021-10-30 22:16:40 +11:00
Oliver
2830fc3c7f Fixes 2021-10-30 14:11:03 +11:00
rocheparadox
e0cd02ee60 added dispatch_uid to post_save signal of StockItem 2021-10-30 08:30:39 +05:30
rocheparadox
83309fd054 Fixed the order of fixtures installation for testing 2021-10-30 08:16:42 +05:30
rocheparadox
f2207cc6f8 Merge remote-tracking branch 'upstream/master' 2021-10-30 08:14:53 +05:30
Oliver
29c913b553 Improvements for stock item test result table 2021-10-30 13:31:13 +11:00
Oliver
79434bb4e0 Handle missing report template 2021-10-30 13:28:08 +11:00
Oliver
a689b77cfb More tweaks 2021-10-30 13:18:11 +11:00
Oliver
c4c533bee0 JS linting 2021-10-30 13:03:52 +11:00
Oliver
c2a8cfd183 PEP style fixes 2021-10-30 12:57:49 +11:00
Oliver
8e1d9c281a Adds tree view for stock locations 2021-10-30 12:53:25 +11:00
Oliver
be23634c5d Refactor display toggle for part list and part category list 2021-10-30 12:45:07 +11:00
Oliver
3bd59728db CSS tweaks 2021-10-30 08:59:40 +11:00
Oliver
fcc1e9fe8f Fixes 2021-10-30 01:00:37 +11:00
Oliver
4eea8c8193 Remove old tree classes 2021-10-30 00:18:41 +11:00
Oliver
a792903a79 Catch sidebar error 2021-10-30 00:15:19 +11:00
Oliver
a15cc1f3ba linting fixes 2021-10-30 00:07:51 +11:00
Oliver
57240865e8 More tweaking 2021-10-30 00:05:32 +11:00
Oliver
25a5d8de78 Improve visual style of breadcrumbs 2021-10-29 23:28:19 +11:00
Oliver
3849ea8057 Rearranging buttons 2021-10-29 23:20:09 +11:00
Oliver
c04118ed8a Driving the refactor tractor around the farm 2021-10-29 22:20:06 +11:00
rocheparadox
d8796f9535 Notify users who have starred a part when that part's stock quantity falls below the minimum quanitity/threshold through email. 2021-10-29 16:03:41 +05:30
Oliver
b41d1aed12 Refactor admin button for:
- build order
- part detail
- stock item
- stock location
- company detail
- manufacturer-part
- purchase order
- sales order
2021-10-29 17:07:35 +11:00
Oliver
8afa39cd91 Refactor "search" page 2021-10-29 13:54:46 +11:00
Oliver
0f10936e65 Refactored index page
- Looks MUCH nicer now!
2021-10-29 13:28:21 +11:00
Oliver
6a3c9ead17 Add option to disable "toggle" for sidebar 2021-10-29 11:48:46 +11:00
Oliver
890fd0f1a0 Remove nav tree 2021-10-29 10:54:15 +11:00
Matthias Mair
6e486140c3
Merge branch 'inventree:master' into matmair/issue2181 2021-10-29 00:21:11 +02:00
Nigel
de90020c0f
Set some sensible options
Including normalilzing the transaction isolation level and setting some
reasonable tcp timeouts for postgres
2021-10-28 14:19:46 -06:00
Oliver
80a41affc1 More sidebar action 2021-10-29 01:20:24 +11:00
Oliver
1b5428718e Refactored sidebar for "purchase order" 2021-10-29 01:11:00 +11:00
Oliver
00a0311c63 Refactor sidebar for "sales order" page 2021-10-29 01:08:18 +11:00
Oliver
5a2c20ea55 Refactor sidebar for "company" display 2021-10-29 01:05:39 +11:00
Oliver
613b135edf Refactor sidebar for "build order" display 2021-10-29 01:00:39 +11:00
Oliver
ec2e06fa15 Refactor sidebar for "settings" window 2021-10-29 00:55:22 +11:00
Oliver
5f139b4aa4 Refactor sidebar for "location" display 2021-10-29 00:43:58 +11:00
Oliver
e0d3facfac Refactor sidebar for "stock item" page 2021-10-29 00:40:16 +11:00
Oliver
59acf45ab9 Implement sidebar for "part category" display 2021-10-29 00:29:09 +11:00
Oliver
f0fe7f2d5c Complete refactoring of part sidebar 2021-10-29 00:20:39 +11:00
Oliver
f542bdc19f badge updates 2021-10-28 22:32:03 +11:00
Matthias
eaf1a4baec
enforce mfa on all frontend pages 2021-10-28 11:41:45 +02:00
Matthias
527bc4381d
show messages in base 2021-10-28 11:39:28 +02:00
Oliver
2778ff55da Remove btn-default 2021-10-28 19:57:17 +11:00
Oliver
b1cdcdf0b8 More fixes
- About modal
- Server-side modals
- icon badges
- checkboxes in API forms
2021-10-28 19:41:46 +11:00
Oliver
d0085efa28 Fix server-side modal 2021-10-28 19:10:21 +11:00
Oliver
3ce8ba85f4 Further badge tweaks 2021-10-28 17:57:03 +11:00
Oliver
f8ac016d60 replace labels with badges 2021-10-28 17:41:40 +11:00
Oliver
c4fd9b7177 Fixes for part "card" view 2021-10-28 17:16:32 +11:00
Oliver
0ef0c539a7 Update bootstrap-table 2021-10-28 13:03:47 +11:00
Oliver
05d350b6c8 Tweaks for settings pages 2021-10-28 12:38:33 +11:00
Oliver
ae2c3e8293 remove "panel-inventree" references 2021-10-28 08:31:36 +11:00
Matthias
aa7b78f41d
Adding in MFA
Fixes #2201
2021-10-27 21:35:00 +02:00
Oliver
8535dd7572 part category and stock location views 2021-10-27 23:53:41 +11:00
Oliver
a21959f54d Refactor stock location view 2021-10-27 23:46:09 +11:00
Oliver
840187f577 refactor stock item page 2021-10-27 23:35:59 +11:00
Oliver
9d2b4af83f Refactor part display 2021-10-27 23:29:10 +11:00
Oliver
e235e5adec Replace "panel-body" with "panel-content" 2021-10-27 23:09:14 +11:00
Oliver
711b3ba923 remove "panel-default" 2021-10-27 23:08:15 +11:00
Oliver
53c579c992 Refactor PO and SO pages 2021-10-27 23:03:08 +11:00
Oliver
5959dccff0 Refactor "supplier_part" page 2021-10-27 22:56:17 +11:00
Oliver
fe25ce8cd1 Refactor "manufacturer_part" view 2021-10-27 22:52:11 +11:00
Oliver
9536231cb0 Refactor company base page 2021-10-27 22:44:46 +11:00
Oliver
8fdaab233c Refactor build page 2021-10-27 22:44:33 +11:00
Oliver
a004f293ff Replace all instances of data-toggle with data-bs-toggle 2021-10-27 22:06:30 +11:00
Oliver
e178a2c370 Refactoring for "stock" pages 2021-10-27 21:50:18 +11:00
Oliver
707a03c416 Add breadcrumbs for build order page
(cherry picked from commit f32dfb01a2)
2021-10-27 20:18:16 +11:00
Oliver
82271cfcb7 Add breadcrumbs to purchase order and sales order pages
(cherry picked from commit dd5eeb7c61)
2021-10-27 20:18:09 +11:00
Oliver
9df9aaa18f breadcrumbs 2021-10-27 20:17:37 +11:00
Oliver
219191eb6a Updates for modal forms:
- Fix css classes
2021-10-27 16:48:45 +11:00
Oliver
abf2093ab9 Adds user option to enable "sticky header" 2021-10-27 16:26:41 +11:00
Oliver
827ff0f58b Modal forms fixes
- Update bootstrap classes and terminology
- Visual tweaks to modal form title block
2021-10-27 16:26:28 +11:00
Oliver
1e31774ce7 Working on navbar 2021-10-27 15:48:42 +11:00
Oliver
c6ceea4d45 Remove reliance on "bootstrap-toggle" library
- Still needs fixing in modal forms
2021-10-27 09:37:07 +11:00
Oliver
3a4022b259 Add files for bootstrap v5.1.3 2021-10-27 08:04:34 +11:00
Oliver
f32dfb01a2 Add breadcrumbs for build order page 2021-10-27 01:15:39 +11:00
Oliver
75845ce1ca Merge branch 'master' into partial-shipment 2021-10-27 01:05:55 +11:00
Oliver
96be11edd4 Add 'status' field to shipment table
- Is not yet implemented in the db model
2021-10-27 01:05:10 +11:00
Oliver
2eb93b5a49 Add functionality to create a new sales order shipment
- From the "New Shipment" button
- As a secondary modal from the stock allocation dialgo
2021-10-27 00:57:47 +11:00
Oliver
4d0f905afc Auto-fill the "quantity" field for the salesorder allocation table 2021-10-27 00:47:15 +11:00
Oliver
7252b299f7 Add modal API form to allocate stock items against a SalesOrder
- Added model renderer for SalesOrderShipment
- Some refactorin'
2021-10-27 00:41:12 +11:00
Oliver
bff9f0828a Adds API endpoint to allocate stock items against a SalesOrder
- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
2021-10-26 23:51:36 +11:00
Oliver
dd5eeb7c61 Add breadcrumbs to purchase order and sales order pages 2021-10-26 22:46:30 +11:00
Oliver
87154c0240 Bump API version 2021-10-26 22:17:31 +11:00
Oliver
c90c224ed2 Update "reference" field for shipment model
- Must be unique
- Auto-incrementing default value
- Updated migrations
2021-10-26 22:13:55 +11:00
Oliver
b35ce79d6a js linting fix 2021-10-26 08:00:28 +11:00
Oliver
cbbad98fea Improve client-side validation of numerical inputs 2021-10-26 07:52:29 +11:00
Oliver
2d910022ac Fix for supplier price breaks
- Make "price" field an InvenTreeMoneySerializer instance
- Add client-side validation for number inputs
2021-10-26 01:55:41 +11:00
Oliver
e7c25126a4 Construct table of "shipments" 2021-10-26 00:17:17 +11:00
Oliver
e9e4d13541 Add list and detail API endpoints for SalesOrderShipment
- Filter by order
- Filter by "shipped" status
- SalesOrderShipment serializer includes information on items allocated to that shipment
2021-10-25 23:34:58 +11:00
Oliver
9fcc55d71d Admin page for new model 2021-10-25 22:50:10 +11:00
Oliver
d31f2be955 Make "shipment" field required for a SalesOrderAllocation
- Deleting a "Shipment" will delete any "Allocation" objects which reference it
- Improve existing data migration for new shipment model
2021-10-25 22:47:41 +11:00
Oliver
ce5b47460a Added data migration for existing SalesOrder instances
- If a SalesOrder is "PENDING" or there are allocations available, a shipment is created
2021-10-25 22:35:27 +11:00
Oliver
2f7e0974b7 Add 'shipment' foreign-key field to SalesOrderAllocation model 2021-10-25 17:42:56 +11:00
Oliver
f00ec26efd Create SalesOrderShipment model 2021-10-25 13:09:06 +11:00
Oliver
65b673b2bb Improve pricing rendering for purchase order table 2021-10-24 19:43:05 +11:00
Oliver
bc596c1f20 Improve rendering of pricing in sale order table 2021-10-24 19:40:32 +11:00
Oliver
5f6e67086f Add "reload" button for salesorderlineitem table 2021-10-24 19:35:23 +11:00
Oliver
a0140dc9a2 bug fix: enable "table reload" for tables without any filters
- setupFilterList function was returning too early
2021-10-24 19:35:15 +11:00
Oliver
367b80c17a
Merge pull request #2194 from matmair/reduce-vertical-space
Move part detail toggle button
2021-10-24 19:08:07 +11:00
Matthias
7f6f22fb03
move part toggle button
under action buttons to save vertical space when closed
2021-10-24 00:40:23 +02:00
Matthias
d97e3cd4e5
create stock on import 2021-10-24 00:19:17 +02:00
Matthias
bec845003d
fix defaults 2021-10-23 23:57:10 +02:00
Matthias
612832c3e7
respect defaults 2021-10-23 23:48:42 +02:00
Matthias
8e6aaa89f9
calculate true / false for fields 2021-10-23 23:40:57 +02:00
Matthias
1556663254
added fields to save step 2021-10-23 23:40:29 +02:00
Matthias
71cc155dc9
Capitalize name 2021-10-23 22:50:01 +02:00
Matthias
da9d2f7467
Added missing fields
Fixes #2181
2021-10-23 22:49:06 +02:00
Matthias Mair
31a8ee7302
Merge branch 'inventree:master' into plugin-2037 2021-10-20 23:52:51 +02:00
Matthias Mair
edd2e16dfc
Merge branch 'inventree:master' into fix-sso-signup 2021-10-20 23:52:47 +02:00
Matthias
48edaa9e2a
not all test be fixed 2021-10-20 23:05:45 +02:00
Matthias
d29e548c05
fix test 2021-10-20 22:38:55 +02:00
Matthias
ae086ba6d4
rename 2021-10-20 22:17:10 +02:00
Matthias
593c7a41de
refactor fnc name 2021-10-20 22:09:50 +02:00
Matthias
c6a5a44355
format results as HTTP result 2021-10-20 22:07:29 +02:00
Matthias
a03c560914
refactor result processing 2021-10-20 22:06:32 +02:00
Matthias
1b72dfeae6
fix header safeing 2021-10-20 22:04:36 +02:00
Oliver
d3b1ecd65e Add "owner" field 2021-10-20 23:44:01 +11:00
Oliver
50a79770e5 Un-comment lines in build.serializers 2021-10-20 23:37:26 +11:00
Oliver
f83dc134ef linting 2021-10-20 23:20:43 +11:00
Oliver
8805b0a553 Add similar auto field capabilities to build order 2021-10-20 23:14:52 +11:00
Oliver
92568748cf Further improvements
- Add callback for when a select2 form field is updated
- Adjust selected quantity based on returned data
- auto_fill the stock_item field
2021-10-20 23:03:03 +11:00
Oliver
f7b6c68237 Pre-fill the form with the remaining allocation quantity 2021-10-20 22:37:54 +11:00
Oliver
4a0ed4b2a1 Start of API forms for stock item 2021-10-20 10:53:21 +11:00
Matthias
24a8c34699
only check if plugin urls are enabled if db ready 2021-10-19 21:42:29 +02:00
Matthias
1c93a126ae
Revert "remove url load setting for plugin"
This reverts commit e37477eb15.
2021-10-19 21:39:58 +02:00
Matthias
f86bd4dd6b
catch db not loaded 2021-10-19 20:59:14 +02:00
Matthias
23558e235b
PEP fix 2021-10-19 20:58:35 +02:00
Matthias
e37477eb15
remove url load setting for plugin 2021-10-19 19:54:20 +02:00
Oliver
c75586bd9a Fix for rendering of build order page 2021-10-19 21:36:51 +11:00
Oliver
60771a74a4 "InvenTree Settings" > "Global Settings" 2021-10-19 11:00:32 +11:00
Oliver
a3b3bdc88b Add some more icons to the settings page 2021-10-19 10:59:52 +11:00
Matthias
69ee4ea14f
and here is the helper 2021-10-19 00:32:51 +02:00
Matthias
bf679f185f
always escalete object 2021-10-19 00:32:26 +02:00
Matthias
515e1faad4
return json rsponse on webhooks 2021-10-19 00:31:25 +02:00
Matthias
6147b079d1
safe url loading 2021-10-18 23:03:00 +02:00
Matthias
b36a1d47e1
move webhook receiver logic 2021-10-18 22:39:08 +02:00
Oliver
4de3bed342 UI tweaks 2021-10-18 22:19:54 +11:00
Oliver
5802a27fe7 Add a per-user setting to enable display of stock in search results 2021-10-18 16:23:42 +11:00
Oliver
4bb0b725da JS cleanup 2021-10-18 15:51:50 +11:00
Oliver
ce921a6774 Display stock level in quick search bar 2021-10-18 15:40:00 +11:00
Oliver
4b344cd7bb CSS tweaks 2021-10-18 12:36:42 +11:00
Oliver
68cfd8615e Improvements to "grid view" for parts list
- Display 5 tiles per line
- Reduce padding
- Add border
2021-10-18 12:19:16 +11:00
Oliver
e04dfa0681 Unit test fix 2021-10-18 08:58:04 +11:00
Matthias
20bb2d438e
make settings protectable from output 2021-10-17 23:19:27 +02:00
Matthias
c2535cbcd7
PEP fix 2021-10-17 19:59:02 +02:00
Matthias
11672096e7
always check if app already loaded 2021-10-17 19:57:42 +02:00
Matthias
d577d3778d
PEP fix 2021-10-17 19:53:11 +02:00
Matthias
dcab0c430c
testing safe settings and app integration 2021-10-17 19:50:46 +02:00
Matthias
5dd36c7587
testing safe url checks 2021-10-17 19:50:21 +02:00
Matthias
487ac594bb
testing save navigation checks 2021-10-17 19:50:06 +02:00
Matthias
d3a4aede29
do not load external plugins for tests 2021-10-17 19:32:06 +02:00
Matthias
171a6d7a4d
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-10-17 18:53:31 +02:00
Matthias
faa620b8f0
remove commit from super call 2021-10-17 18:52:59 +02:00
Oliver
fb6f15f462 Delete a bunch of old template files 2021-10-17 22:57:15 +11:00
Oliver
83faaa2da3 unit test fixes 2021-10-17 22:57:07 +11:00
Oliver
6ebb956c8d Fix generation of API documentation
- Can't use get_object_or_404 in API views!
2021-10-17 22:32:03 +11:00
Oliver
7c5c1b6696 typo fix 2021-10-17 21:55:33 +11:00
Oliver
02f4f0fd15 js linting fixes 2021-10-17 21:50:18 +11:00
Oliver
a97a918860 cut out the fat
(removing dead code for outdated form views)
2021-10-17 21:46:33 +11:00
Oliver
4a6c1e850f Cleanup unused form 2021-10-17 21:40:59 +11:00
Oliver
90593a187c PEP fixes 2021-10-17 21:39:07 +11:00
Oliver
542b4113a1 Improvements for build output completion
- Check if the output is fully allocated (throw error if not)
- Reload tables after actions performed
2021-10-17 21:37:10 +11:00
Oliver
bd7fef720d Enable "allocate" button only once the sub-table is expanded 2021-10-17 21:13:07 +11:00
Oliver
87dcaba0d8 Bump API version 2021-10-17 20:23:39 +11:00
Matthias
279ed78119
refactor 2021-10-17 04:47:10 +02:00
Matthias
48abd3cf79
remove unneeded settings 2021-10-17 04:35:24 +02:00
Matthias
cad744e40b
remove unneeded setting 2021-10-17 04:27:19 +02:00
Matthias
dfe10a417b
fix app settings 2021-10-17 04:24:04 +02:00
Oliver
90625af39d Re-enable the "allocate" stock button 2021-10-17 11:34:44 +11:00
Oliver
6c1dad8d91 Consolidate javascript for sidenavs 2021-10-17 11:26:08 +11:00
Oliver
9d2273c1cd Further work on build output scripts 2021-10-17 11:25:53 +11:00
Oliver
283bf1682f Remove old views / forms 2021-10-17 11:25:33 +11:00
Matthias
77312b031a
PEP fixes 2021-10-16 17:54:34 +02:00
Matthias
81b2a1e9c9
fix warning block 2021-10-16 17:52:58 +02:00
Matthias
9ac6bf26e5
added warning 2021-10-16 17:50:30 +02:00
Matthias
99e4b6f6a5
settting to control app loading 2021-10-16 17:47:05 +02:00
Oliver
14ef56785e Add option to select multiple build outputs
- Can "complete" these outputs
2021-10-16 14:27:02 +11:00
Oliver
d47b32e4aa Adds function to complete multiple build outputs via the API 2021-10-16 14:08:53 +11:00
Oliver
ccaa7d2683 Merge branch 'master' into build-output-complete 2021-10-16 13:18:35 +11:00
Matthias
c16c26c496
setting to control plugin settings ingestion 2021-10-16 04:17:48 +02:00
Oliver
b60296e494 Add some more unit tests 2021-10-16 13:16:19 +11:00
Oliver
41e59e5311 Right align expand buttons 2021-10-16 13:01:19 +11:00
Matthias
952e7e4554
add url setting 2021-10-16 00:34:15 +02:00
Matthias
41ce66df6e
add navigation setting 2021-10-16 00:32:48 +02:00
Matthias
32122102e6
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-10-15 23:36:19 +02:00
Matthias
103a4af9d4
fix signup with providers with extra args 2021-10-15 23:18:03 +02:00
Oliver
603f7d5f45 Fixes 2021-10-15 15:13:06 +11:00
Oliver
6343445433 Add support for backend-specific database functionality 2021-10-15 15:05:55 +11:00
Oliver
744befcc96
Merge pull request #2161 from matmair/onboarding-group
Onboarding group
2021-10-15 12:55:55 +11:00
Oliver
8e4deaa8c8 Standardize spelling of email / e-mail
(Spoiler: I chose "email")
2021-10-15 11:52:13 +11:00
Matthias
0657b71fe8
clearer name and PEP foxes 2021-10-14 22:19:52 +02:00
Matthias
f478a6236f
Merge branch 'master' of https://github.com/inventree/InvenTree into onboarding-group 2021-10-14 22:18:42 +02:00
Matthias
e0887cf55f
move goup forming into own function 2021-10-14 22:16:07 +02:00
Matthias Mair
55ba9ad6c9
Merge branch 'inventree:master' into fix-email-settingins 2021-10-14 21:39:32 +02:00
Matthias
27aec4246e
PEP fix 2021-10-14 21:33:54 +02:00
Matthias
f95896e8ea
this was not meant to be submitted 2021-10-14 21:33:35 +02:00
Matthias
3a586af556
move setting to better fit grouping 2021-10-14 21:27:41 +02:00
Matthias
b26bf780c3
setting to register group on signup 2021-10-14 21:27:09 +02:00
Matthias
3435254d2a
fix email config check 2021-10-14 16:34:59 +02:00
Oliver
4702c6b37f Refactorin' 2021-10-15 00:25:36 +11:00
Oliver
0d49513092 Add button callbacks for top-level table 2021-10-14 23:58:03 +11:00
Oliver
bf47b57c82 working on updating build output tables 2021-10-14 23:46:21 +11:00
Oliver
be6f417dff Random button cleanup 2021-10-14 23:13:12 +11:00
Oliver
b0a3280c05 Add unit testing 2021-10-14 23:13:08 +11:00
Oliver
54dd05a24d Add an API serializer to complete build outputs 2021-10-14 23:13:01 +11:00
Oliver
0e589533e5
Merge pull request #2155 from SchrodingersGat/natural-sort
Natural sort
2021-10-14 19:32:02 +11:00
Oliver
2c9bbb051a Add some unit tests
- Saving a model automatically updates the reference_int field
- Data migrations are correctly applied
2021-10-14 19:12:23 +11:00
Oliver
d0f60766e0 exclude new field from admin view 2021-10-14 18:57:02 +11:00
Oliver
ee7b8dc1ad
Merge pull request #2158 from SchrodingersGat/part-exclude
Exclude parts from API
2021-10-14 18:54:25 +11:00
Oliver
4327cbedce Remove debug message 2021-10-14 18:01:16 +11:00
Oliver
d3d1d2f577 Auto-rebuild the reference field for the SalesOrder on save 2021-10-14 18:00:17 +11:00
Oliver
068b54f666 Data migration for PurchaseOrder and SalesOrder models 2021-10-14 17:58:09 +11:00
Oliver
5c6a7b489c Data migration for the Build model 2021-10-14 17:54:46 +11:00
Oliver
7ce0f817aa Add a 'reference_int' field to the models, to be used as a secondary index 2021-10-14 17:45:43 +11:00
Oliver
9b00ede61a Add part queryset filtering to exclude particular ID values 2021-10-14 17:12:08 +11:00
Oliver
0c60387626 Extract a list of existing substitute parts from the form 2021-10-14 16:50:56 +11:00
Oliver
9319113793 quick bug fix 2021-10-14 16:27:10 +11:00
Oliver
05791a8efd
Merge pull request #2138 from rocheparadox/master
Custom name format for parts - FR InvenTree#2085
2021-10-14 16:03:58 +11:00
rocheparadox
5a6bea3452 improve regex for part name format validation
proper import of validation
2021-10-14 09:35:26 +05:30
rocheparadox
ee9e01fc22 removed unused import 2021-10-14 09:26:26 +05:30
rocheparadox
8cad687e43 Moved part name format validation to InvenTree.validators.py from common.models
validation to check if a field exists in part model
2021-10-14 09:23:21 +05:30
Oliver
e46875b0a3 Apply same fix to PurchaseOrder and SalesOrder lists 2021-10-14 14:31:25 +11:00
Oliver
233672d822 Add new functionality to InvenTreeOrderingFilter
- Allow ordering by multiple field aliases
- Simply way to implement "integer ordering" functionality
2021-10-14 14:25:39 +11:00
Oliver
0cdc82a4b3 Annotate BuildList queryset with integer cast of the reference 2021-10-14 14:24:17 +11:00
Oliver
44b4061d7d Fix table filtering bug
- Introduced in recent "BOM substitutes" PR
2021-10-14 11:56:26 +11:00
Oliver
22572c6f35
Merge pull request #2150 from SchrodingersGat/bom-substitutes
Bom substitutes
2021-10-14 11:24:46 +11:00
Oliver
4a6bd0123a Bug fixes 2021-10-14 11:00:27 +11:00
Oliver
7dfffcd5d3 Move "build unallocate" functionality to the API
- Much much simpler now!
- Filtering is against bom_item, not part
- Fixes a bug with the new (reasonably complex) substitution framework
2021-10-14 10:32:43 +11:00
Oliver
1cbce5dfbf javascript fixes 2021-10-14 09:14:31 +11:00
Matthias
147d2d4631
fix default setting to not change current behaviour 2021-10-13 17:40:50 +02:00
Oliver
0581885ad5 Simplify BOM table buttons 2021-10-14 00:26:34 +11:00
Oliver
c32b17aa4a Remove locale_stats file 2021-10-13 23:58:19 +11:00
Oliver
890741ef5d Display badge indicating variant stock can be used 2021-10-13 23:57:50 +11:00
Oliver
be5c5496b2 Improvements to allocation of stock items against build orders
- Refactor functions for filtering stock using bom_item pk
- Allow selection of substitute items when allocating against build order
- Improvements for modal rendering
- Don't display filter drop-down if there are no filters available
2021-10-13 23:53:35 +11:00
Oliver
c7cec13076 Bug fix 2021-10-13 23:18:44 +11:00
Oliver
f3074e8f34 Improved unit testing for BomItem
- tests for allowing variant parts
- tests for allowing substitutes
2021-10-13 23:18:26 +11:00
Oliver
0f8c279aa2 Add some unit testing for the new model 2021-10-13 22:27:10 +11:00
Oliver
8512c2db75 Reload the parent table when adding or removing substitutes 2021-10-13 22:06:51 +11:00
Oliver
ea4c4c514f Add uniqueness checking for the BomItemSubstitute model 2021-10-13 22:01:32 +11:00
Oliver
0e1e8226b1 Add a callback to remove individual rows 2021-10-13 21:42:50 +11:00
Oliver
8b41e68e6b Launch a dialog displaying the available BOM substitutes 2021-10-13 21:33:41 +11:00
Oliver
6803f3cf63 Display "substitutes available" icon 2021-10-13 20:36:31 +11:00
rocheparadox
0742fb063c comment cleanup 2021-10-13 10:58:36 +05:30
rocheparadox
294011a973 Merge remote-tracking branch 'upstream/master' 2021-10-13 10:10:59 +05:30
Oliver
6816071388 Simplify BOM editing view
- A user with permission to edit BOM data can immediately access the BOM editing tools
2021-10-13 14:44:59 +11:00
Oliver
51efd6b2e4 Add permissions for new mdoel 2021-10-13 14:06:36 +11:00
Oliver
37bd5c0507 Add serializer and API endpoint for BomItemSubstitute class 2021-10-13 13:58:41 +11:00
Oliver
f3f41730be Add "substitutes" column to BOM table 2021-10-13 11:58:40 +11:00
Oliver
324ccd805d Include BomItem substitutes in the serializer 2021-10-13 11:07:44 +11:00
Oliver
7c396f9f39 Enable optional pagination for the BomItem API endpoint 2021-10-13 11:07:34 +11:00