Commit Graph
100 Commits
Author SHA1 Message Date
OliverandGitHub 1b507d53d0 Merge pull request #3001 from matmair/devops-isort
Add isort
2022-05-17 01:06:48 +10:00
OliverandGitHub c51f052f25 Merge pull request #3011 from matmair/matmair/issue2996
Remove python 2 code
2022-05-17 00:51:31 +10:00
OliverandGitHub 86c86bf446 Merge pull request #3006 from SchrodingersGat/bom-delete-fix
BOM delete fix
2022-05-16 23:30:22 +10:00
OliverandGitHub 31667020ae Merge pull request #3004 from SchrodingersGat/events-fix
Add required imports to plugin.events
2022-05-16 23:05:45 +10:00
OliverGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ea2fb76a29 Translation merge (#3009)
* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-16 23:04:58 +10:00
OliverandGitHub 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 Walters 7fa83d70ad Fix for broken unit test 2022-05-16 22:14:06 +10:00
Oliver Walters 2ed69f638a Fix error message 2022-05-16 22:08:58 +10:00
Oliver Walters 73413baa59 Add required imports to plugin.events 2022-05-16 22:01:34 +10:00
Oliver Walters bd17458f37 Add metadata endpoints for SalesOrder and PurchaseOrder models 2022-05-16 21:40:10 +10:00
Oliver Walters 5582c8ba43 Add metadata endpoints for SalesOrder and PurchaseOrder models 2022-05-16 21:29:49 +10:00
Oliver Walters 21ebf562fd Adds metadata fields to PurchaseOrder and SalesOrder models 2022-05-16 21:21:32 +10:00
Oliver Walters a52ba05eb7 Add unit test for PartCategory API endpoints 2022-05-16 21:19:01 +10:00
Oliver Walters 37a74dbfef Adds a metadata serializer class for accessing instance metadata via the API
- Adds endpoint for Part
- Adds endpoint for PartCategory
- Adds endpoint for StockItem
- Adds endpoint for StockLocation
2022-05-16 20:59:09 +10:00
Oliver Walters cd68d5a80e Add metadata mixin to Part and PartCategory models 2022-05-16 19:14:46 +10:00
OliverandGitHub 8052d78311 Merge pull request #3002 from SchrodingersGat/order-form-fix
Fix "fields" attribute for PurchaseOrderLineItem edit form
2022-05-16 09:29:03 +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
OliverandGitHub 57d481a8b8 Merge pull request #2999 from matmair/fix-todos
Fix Todo texts
2022-05-16 09:16:34 +10:00
OliverandGitHub c3433128b5 Merge pull request #2975 from matmair/fix-boolean
Fix boolean comparator
2022-05-16 07:22:55 +10:00
OliverandGitHub 43669db783 Merge pull request #2998 from matmair/small-python-fixes-plugin
Small code smell fixes for plugin
2022-05-16 07:20:22 +10:00
OliverandGitHub 5bc748316d Merge pull request #2995 from matmair/fix-actions
Small action fixes
2022-05-16 00:52:01 +10:00
Oliver Walters 28b811d961 PEP style fixes 2022-05-16 00:47:00 +10:00
Oliver Walters 097afed78e Adds metadata mixin class for adding JSON field to internal tables
- Add metadata field to stocklocation
- Add metadata field to stockitem
2022-05-16 00:45:16 +10:00
Oliver Walters 818be32e31 Move location plugin sample into its own directory 2022-05-16 00:35:34 +10:00
OliverandGitHub 432fd9b8e6 Merge pull request #2994 from matmair/patch-1
Bump python version
2022-05-16 00:29:45 +10:00
Oliver Walters eebdad154a PEP fixes 2022-05-16 00:12:33 +10:00
Oliver Walters 40513c556d Remove locate button from top-level stock location 2022-05-16 00:10:50 +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
OliverandGitHub a26840d77f Merge pull request #2971 from matmair/plugin-app-refactor
Plugin app refactor
2022-05-15 23:45:42 +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
OliverandGitHub 9c1e266628 Merge pull request #2985 from matmair/dead-code-owner
remove duplicate code
2022-05-15 21:51:57 +10:00
OliverandGitHub db026c935b Merge pull request #2990 from matmair/matmair/issue2989
Remove static label tests
2022-05-15 21:28:16 +10:00
OliverandGitHub 55dacd891e Merge pull request #2984 from matmair/matmair/issue2980
Unit tests for auth stack
2022-05-15 21:27:43 +10:00
OliverandGitHub c2dd8afea6 Merge pull request #2981 from SchrodingersGat/model-setting-reference
Add settings which reference *model instances* allowing better lookup of models
2022-05-12 17:59:56 +10: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
OliverandGitHub a68db90240 Merge pull request #2978 from SchrodingersGat/convert-to-variant-fix
Convert to variant fix
2022-05-12 15:42:22 +10:00
Oliver 59cf9825fe Update comment 2022-05-12 15:16:26 +10:00
Oliver 47ddafb728 Fix edge case when converting stock item to variant
- If the stock item had been created as part of a Build Order, and subsequently "converted" to a variant part, the conversion operation will fail
- Patch allows the build reference to be linked based on either the base part, or any conversion options
2022-05-12 15:15:51 +10:00
OliverandGitHub 56f36d4b4b Merge pull request #2977 from SchrodingersGat/table-downloader
Adding "download" buttons for more tables
2022-05-12 13:27:11 +10:00
Oliver 8edc0cc893 PEP fixes 2022-05-12 12:47:25 +10:00
Oliver a83c3289b7 Merge remote-tracking branch 'inventree/master' into table-downloader 2022-05-12 12:44:26 +10:00
Oliver c89547f58c Adds exporter and download functionality for BuildOrder table 2022-05-12 12:44:15 +10:00
OliverandGitHub e3508f99d9 Merge pull request #2976 from SchrodingersGat/auth-middleware-fix
Do not redirect requests for media / static / api / js files
2022-05-12 12:05:02 +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
Oliver 465e69c254 Refactor exporters for:
- Part
- PurchaseOrderLineItem
2022-05-12 11:33:17 +10:00
Oliver a77d4b97b4 Refactor stock_list endpoint to use the new mixin 2022-05-12 11:29:33 +10:00
Oliver 650d082eca Bump API version 2022-05-12 11:23:58 +10:00
Oliver 774bfdb9e7 Adds APIDownloadMixin class to implement common behaviour 2022-05-12 11:22:34 +10:00
Oliver 21d2b54afe Fix CI step 2022-05-12 11:00:43 +10:00
Oliver aa9ee15fb4 Fix CI pipeline for python checks
- Recently updated the python binding test framework
2022-05-12 10:52:53 +10:00
Oliver 151f2cae6f Do not redirect requests for media / static / api / js files
- For these paths, just return a 401
- This is necessary to stop unauthorized calls to the API or to request media files from redirecting to the login page
2022-05-12 10:45:30 +10:00
OliverandGitHub 2652c75bda Merge pull request #2972 from SchrodingersGat/user-create-auto-fix
Do not try to create a new admin user if one already exists
2022-05-11 23:29:16 +10:00
OliverandGitHub 362bc55479 Merge pull request #2966 from matmair/add-report-check
Add code128 template
2022-05-11 21:50:08 +10:00
Oliver Walters f00c3639c0 PEP fxi 2022-05-11 21:04:36 +10:00
Oliver Walters e1609c50db Typo fix 2022-05-11 20:57:42 +10:00
Oliver Walters d7eab8e1a3 Improve log output 2022-05-11 20:48:26 +10:00
Oliver Walters 20fa72e36f Do not try to create a new admin user if one already exists with that name 2022-05-11 20:46:44 +10:00
OliverandGitHub f4e3abd44e Merge pull request #2968 from SchrodingersGat/ci-simplification
postgresql and mysql checks only run on push
2022-05-11 14:41:57 +10:00
Oliver a6815c8334 if != on 2022-05-11 14:16:39 +10:00
Oliver 37ce9f351d postgresql and mysql checks only run on push
- sqlite and coverage still runs on pull_request
- should speed up CI checks / reduce redundant CI server load
2022-05-11 14:15:44 +10:00
OliverGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
96ee235563 L10 crowdin (#2967)
* updated translation base

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

* Fix: New translations django.po from Crowdin

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-11 14:08:06 +10:00
OliverandGitHub 6c52d0b8dc Merge pull request #2965 from SchrodingersGat/docker-git
Mark inventree home directory as safe for git.
2022-05-10 23:35:11 +10:00
Oliver Walters bb5d6815df Mark inventree home directory as safe for git.
Ref: https://github.blog/2022-04-12-git-security-vulnerability-announced/
2022-05-10 23:24:32 +10:00
OliverandGitHub 28123ef9bc Merge pull request #2964 from SchrodingersGat/barcode-validation-fix
Fix error response in barcode API
2022-05-10 23:10:29 +10:00
Oliver Walters 9658f47e93 PEP fix 2022-05-10 22:32:44 +10:00
Oliver Walters a6703df3c7 More fixes and unit tests 2022-05-10 22:10:56 +10:00
Oliver Walters 235954af18 Add unit test for invalid item 2022-05-10 22:08:23 +10:00
Oliver Walters 6766343f8f Update API version 2022-05-10 22:05:59 +10:00
Oliver Walters 5a978f07a5 Fix error response in barcode API 2022-05-10 22:05:08 +10:00
OliverandGitHub 0461661139 Merge pull request #2961 from SchrodingersGat/build-test-fix
Order test results by decreasing date for build order
2022-05-10 14:15:45 +10:00
Oliver db018af0ce Prevent some model based events from triggering during data import 2022-05-10 13:43:16 +10: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 a17ea3ac10 Change "identify" to "locate" for consistency with the app 2022-05-10 08:31:40 +10:00
OliverandGitHub 188c55e17f Merge pull request #2959 from matmair/fix-tag
Fix usage of old html tags
2022-05-10 08:14:19 +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 6c0661a6f2 PEP style fixes 2022-05-09 23:52:19 +10:00
Oliver Walters 35fbb910e8 Enable button for locating a StockLocation 2022-05-09 23:45:29 +10:00
Oliver Walters 224092e192 Fix typo 2022-05-09 23:44:58 +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 9b7c26ec9c Bump API version 2022-05-09 22:54:48 +10:00
Oliver Walters b7cd30b314 Merge remote-tracking branch 'inventree/master' into locate-mixin 2022-05-09 22:48:44 +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 26f32a0ce8 Plugin list API filters
- Filter by "active" status
- Filter by "mixin" support
2022-05-09 22:33:33 +10:00
Oliver Walters 6aeb7d723d Fix typo in mixin name 2022-05-09 22:25:09 +10:00
Oliver Walters 0a0a6a799a Fix for sample plugin 2022-05-09 22:20:00 +10:00
OliverandGitHub 583f8faf66 Merge pull request #2956 from SchrodingersGat/settings-api-fix
Fix permissions for global settings API
2022-05-09 22:13:51 +10:00
Oliver Walters 172705cc3b Adds sample plugin for locating items 2022-05-09 22:13:07 +10:00
Oliver Walters 59c747841c Adds plugin mixin to "locate" items 2022-05-09 22:01:27 +10:00
Oliver Walters 30d799dbc6 Fix permissions for global settings API 2022-05-09 21:43:12 +10:00
OliverandGitHub cfaef06b9c Merge pull request #2955 from liamsegura/patch-2
docs(README.md): linked Twitter and Reddit #2954
2022-05-09 21:30:12 +10:00
OliverandGitHub a590efe0e8 Merge pull request #2951 from SchrodingersGat/barcode-webcam-setting
Adds global setting to enable or disable webcam support for barcodes
2022-05-09 21:29:07 +10:00
Oliver Walters db8396564c Further unit test fixes 2022-05-09 20:47:44 +10:00
OliverandGitHub 6aab365448 Merge pull request #2953 from liamsegura/patch-1
Added link to License.txt
2022-05-09 20:14:59 +10:00