Oliver
8ad141f910
Add extra options to control search results in preview window
...
- Allow user to optionally show / hide inactive purchase orders
- Allow user to optionally show / hide inactive sales orders
2022-05-20 16:57:30 +10:00
Matthias Mair
e1abdddc4a
Merge branch 'inventree:master' into not-working-tests
2022-05-20 00:28:35 +02:00
Matthias
b87f44dbfc
skip css if not available
2022-05-20 00:10:41 +02:00
Oliver Walters
e93b138de4
Expand unit tests for settings
...
- Check that name and description are translated
- Check for only allowed keys
- Extend checks to include user settings
- Check default value for boolean setting
2022-05-19 19:49:39 +10:00
Matthias
890a5cd1e6
rollback testing dsaveguards and add docs
2022-05-19 01:43:28 +02:00
Matthias
5ab4fdeb84
skip tests if no themes are present
2022-05-19 00:14:20 +02:00
Matthias
51cd038f04
jump over if static dir does not exsist
2022-05-18 23:31:44 +02:00
Maksim Stojkovic
276075ce05
PEP styling
2022-05-19 00:33:03 +10:00
Maksim Stojkovic
2cf67ea0c9
Create default shipment in backend
2022-05-19 00:10:55 +10:00
Matthias Mair
67733fa37b
Merge branch 'inventree:master' into not-working-tests
2022-05-18 01:54:00 +02:00
Oliver
9bcbaaa5f5
Remove more python2 stuff
2022-05-17 16:57:31 +10:00
Matthias Mair
8340daf77b
Merge branch 'master' of https://github.com/inventree/InvenTree into not-working-tests
2022-05-16 19:01:40 +02:00
Matthias Mair
2df049fe05
Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue3005
2022-05-16 17:48:01 +02:00
Matthias Mair
0f5c03e44c
use direct import instead of text for offload
2022-05-16 17:45:51 +02:00
Oliver
c51f052f25
Merge pull request #3011 from matmair/matmair/issue2996
...
Remove python 2 code
2022-05-17 00:51:31 +10:00
Oliver
57d481a8b8
Merge pull request #2999 from matmair/fix-todos
...
Fix Todo texts
2022-05-16 09:16:34 +10:00
Matthias
ecccfbd546
Remove encoding header
...
Fixes #2996
2022-05-15 20:33:00 +02:00
Matthias
8b9c80d2a4
remove todo that is not fitting any more
2022-05-15 17:55:05 +02:00
Matthias
136d642703
Merge branch 'fix-boolean' of https://github.com/matmair/InvenTree into fix-boolean
2022-05-15 17:52:34 +02:00
Matthias
77aeecf23a
make operators simpler
2022-05-15 17:52:23 +02:00
Matthias
6d34e5f5a0
Merge branch 'small-python-fixes-plugin' of https://github.com/matmair/InvenTree into not-working-tests
2022-05-15 17:06:36 +02:00
Matthias
38cb557baf
Add test for wrong key
2022-05-15 01:07:35 +02:00
Matthias
48d458698a
reduce lines
2022-05-15 01:06:56 +02:00
Matthias
d3cc698500
merge tests together
2022-05-15 01:05:49 +02:00
Matthias
75843c1789
Merge branch 'theme-tests' of https://github.com/matmair/InvenTree into not-working-tests
2022-05-15 00:25:53 +02:00
Matthias
47673c293e
Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-app-refactor
2022-05-12 23:45:12 +02:00
Oliver
c4fa72e54c
PEP style fixes
2022-05-12 17:30:52 +10:00
Oliver
a81ea01e8e
Model introspection
...
- Find the class registered to the model (or log an error)
- Pass the api_url through to the frontend
2022-05-12 17:28:55 +10:00
Oliver
e112d555d4
Simplify the various settings objects, to improve retrieval of 'parameters' from the base class
...
- Remove the GenericReferencedSettingsClass mixin
- Each subclass defines a very simple get_kwargs() method
- Now, at object level *and* class level we can perform lookup of settings and actually get proper data back
- Adds "model" option to setting (precursor of things to come)
2022-05-12 16:45:27 +10:00
Matthias
4ed795174d
PEP fix
2022-05-12 00:52:28 +02:00
Matthias
142398976c
test plugin details
2022-05-12 00:38:21 +02:00
Matthias
1782974df8
replace depreceated values everywhere
2022-05-11 16:46:03 +02:00
Matthias
f17ef4585c
fix wrong import
2022-05-11 16:18:32 +02:00
Matthias
1571b99ed2
rename IntegrationPluginBase to InvenTreePlugin
2022-05-11 14:28:26 +02:00
Matthias
01e8b5dce3
remove InvenTreePluginBase
2022-05-11 14:21:16 +02:00
Matthias Mair
1ae5df5759
Merge branch 'inventree:master' into theme-tests
2022-05-09 19:41:05 +02:00
Oliver Walters
30d799dbc6
Fix permissions for global settings API
2022-05-09 21:43:12 +10:00
Oliver Walters
037e057c53
Adds global setting to enable or disable webcam support for barcode scanning
2022-05-09 19:46:11 +10:00
Oliver Walters
aed02f6f0f
PEP fixes
2022-05-08 22:53:49 +10:00
Oliver Walters
3a9bacb27c
Implement new approach for plugin settings
...
- URL specifies plugin slug and setting key
2022-05-08 22:48:47 +10:00
Oliver Walters
5cd2c20a11
PEP style fixes
2022-05-08 17:32:23 +10:00
Oliver Walters
9e872d283b
Update unit tests to match new format
...
- Add more unit tests for global settings
- Add more unit tests for user settings
2022-05-08 13:31:53 +10:00
Oliver Walters
5560706c33
User settings are now accessed via unique KEY
2022-05-08 10:58:31 +10:00
Oliver Walters
cd6a6b9196
Access global settings via the API using the <key> of the setting, rather than the <PK>
...
- Allows us to access settings even if they have not been 'created' yet
- Settings are created with default values if not found
2022-05-08 10:39:14 +10:00
Matthias
13854998ea
Add test for ColorTheme
2022-05-07 23:12:15 +02:00
Matthias
0d0b713f6e
Fix tests
2022-05-06 02:26:58 +02:00
Matthias
9a9a7e0ff4
also cover list API
2022-05-06 01:31:23 +02:00
Matthias
a2331829c9
this can not happen with normal operation
2022-05-06 01:31:11 +02:00
Matthias
d5c95f2225
only safety test - api is not callable as non-user
2022-05-06 01:29:16 +02:00
Matthias
8f220837d0
only log messages about notification methods
2022-05-06 01:25:22 +02:00