Oliver Walters
f4b470c396
Merge remote-tracking branch 'inventree/master' into shipment-assign-fix
2022-05-17 18:48:57 +10:00
Oliver Walters
2509db2b88
JS linting
2022-05-17 00:52:01 +10:00
Oliver Walters
ae50546ca6
Display API error information if available
2022-05-17 00:25:32 +10:00
Oliver
86c86bf446
Merge pull request #3006 from SchrodingersGat/bom-delete-fix
...
BOM delete fix
2022-05-16 23:30:22 +10:00
Oliver
042cb021de
Merge pull request #2957 from SchrodingersGat/locate-mixin
...
Adds plugin mixin to "locate" items
2022-05-16 22:57:20 +10:00
Oliver Walters
6658b89946
Refactor BOM item deletion
...
- Send delete requests sequentially, rather than simultaneously
- Prevents server overload
- Present a much cleaner dialog to the user
2022-05-16 22:51:34 +10:00
Oliver Walters
1903ac12cd
Allow customization of button class in modal forms
2022-05-16 22:43:29 +10:00
Oliver
3614e09211
Fix "fields" attribute for PurchaseOrderLineItem edit form
...
- The 'order' field was not being included
2022-05-16 09:25:20 +10:00
Oliver Walters
95dbfa1958
Merge remote-tracking branch 'inventree/master' into locate-mixin
...
# Conflicts:
# InvenTree/InvenTree/api.py
# InvenTree/InvenTree/urls.py
# InvenTree/plugin/base/integration/mixins.py
# InvenTree/plugin/mixins/__init__.py
2022-05-16 00:10:38 +10:00
Oliver Walters
fa954b3812
Merge remote-tracking branch 'inventree/master' into locate-mixin
...
# Conflicts:
# InvenTree/InvenTree/api_version.py
# InvenTree/InvenTree/urls.py
2022-05-15 23:44:07 +10: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
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
Oliver
c89547f58c
Adds exporter and download functionality for BuildOrder table
2022-05-12 12:44:15 +10:00
Oliver
d0ddb47b1f
Adds exporter and download button for sales orders
2022-05-12 11:44:05 +10:00
Oliver
1b1f7634b7
Adds exporter and download button for PurchaseOrder table
2022-05-12 11:41:25 +10:00
Matthias
da885456b7
tests for template
2022-05-11 22:47:41 +02:00
Oliver
5af4629163
Order test results by decreasing date for build order
...
- This means that "newer" results will be found first
- Thus a newer "true" will beat an older "false"
2022-05-10 11:54:51 +10:00
Oliver Walters
26499816c1
javascript lint
2022-05-10 08:12:04 +10:00
Oliver Walters
5ea115ae83
hard code url
2022-05-10 01:18:36 +10:00
Oliver Walters
57f3efe758
Adds an endpoint for calling the plugin code to "locate" something
2022-05-09 23:42:28 +10:00
Oliver Walters
4704db5183
Adds 'locate item' and 'locate location' buttons
2022-05-09 22:48:26 +10:00
Oliver Walters
256af802e2
Use the new 'mixin' filter to simplify request of label printer plugins
2022-05-09 22:35:46 +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
e78a5dc104
Keep existing behaviour for notification settings (at least for now)
2022-05-08 22:52:08 +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
5560706c33
User settings are now accessed via unique KEY
2022-05-08 10:58:31 +10:00
Oliver Walters
dd017f36c7
Augment existing frontend code to allow adjustment of notification settings
2022-05-08 10:50:57 +10:00
Oliver Walters
0797e9ebf0
Simplify the new template rendering
...
- No extra template code is required for any new page
- All loaded in base.html or page_base.html
- Oh, so clean!
2022-05-06 23:19:21 +10:00
Oliver Walters
71128a1c8e
Refactor the plugin javascript template
...
- Can appear in "base.html"
- Only renders anything if there are actually plugins available for the page
2022-05-06 22:57:15 +10:00
Oliver Walters
c80b36fc2f
Adds a new InvenTreePluginMixin mixin class for enabling custom plugin rendering on a page
...
- Any view which needs custom plugin code must implement this mixin
- Initially implement for the PartDetail page
2022-05-06 22:52:52 +10:00
Oliver Walters
b80ff5e460
Tweak display of plugin badges
2022-05-06 21:03:30 +10:00
Matthias Mair
6bd997ffad
Merge branch 'inventree:master' into matmair/issue2385
2022-05-05 11:26:25 +02:00
Matthias
a27f8a427a
Merge branch 'matmair/issue2385' of https://github.com/matmair/InvenTree into matmair/issue2385
2022-05-04 17:40:47 +02:00
Matthias
b16305afef
add html for notification setting
2022-05-04 17:40:04 +02:00
Matthias Mair
cf93ba7cf9
Merge branch 'inventree:master' into matmair/issue2385
2022-05-04 12:23:05 +02:00
Oliver Walters
17c84141b1
Javascript linting
2022-05-04 17:38:01 +10:00
Oliver Walters
adbcd68fe8
Refactor "uninstall stock item" form to use the API
2022-05-04 17:25:24 +10:00
Oliver Walters
bd3d6f47a1
Refactor CancelBuild form
2022-05-04 16:30:46 +10:00
Oliver Walters
a510ca89f7
Refactor CancelSalesOrder form
2022-05-04 15:55:21 +10:00
Oliver Walters
bf48e3204b
Refactor PurchaseOrderIssue form
2022-05-04 15:45:13 +10:00
Oliver Walters
5afc3bfce2
Replace PurchaseOrderComplete form
2022-05-04 15:33:50 +10:00
Oliver Walters
e527ddcc86
Extract context information from the OPTIONS request (forms.js)
2022-05-04 15:31:33 +10:00
Oliver Walters
62cd0f39c7
Replace the existing CancelPurchaseOrderForm with an API driven form
2022-05-04 15:14:14 +10:00
Oliver Walters
96c5a8252c
remove dead code
2022-05-03 17:33:03 +10:00
Oliver Walters
f0e8e32c8a
More refactoring
2022-05-03 17:27:21 +10:00
Oliver Walters
f3e8edaf1f
Refactor for SupplierPart detail page
2022-05-03 17:21:33 +10:00
Oliver Walters
05b01e4d6c
Refactor order parts for manfuacturer part detail page
2022-05-03 17:16:38 +10:00
Oliver Walters
28f3244574
Order parts from "supplier parts" page
...
- Prevent duplicate parts from loading
2022-05-03 16:52:23 +10:00
Oliver Walters
c0163a476f
Refactor 'order parts' window from manufacturer part list
2022-05-03 16:42:00 +10:00