Commit Graph
100 Commits
Author SHA1 Message Date
OliverandGitHub 8385080e4c Merge pull request #3036 from maksimstojkovic/auto-reload-so
Primitive solution to SO reload on shipment
2022-05-19 21:16:24 +10:00
OliverandGitHub 90235a2bb1 Merge pull request #3035 from SchrodingersGat/setting-unit-tests
Expand unit tests for settings
2022-05-19 20:23:18 +10: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
OliverandGitHub 1bff1868fd Merge pull request #3034 from SchrodingersGat/plugin-panels-test
Plugin panels test
2022-05-19 14:30:03 +10:00
OliverandGitHub 0c02e57b58 Merge pull request #3028 from maksimstojkovic/automatic-shipment-creation
[Feature] Create a default shipment when creating SO
2022-05-19 13:48:33 +10:00
OliverandGitHub 2ddaa9c04a Merge pull request #3020 from SchrodingersGat/download-unit-tests
Download unit tests
2022-05-19 13:34:41 +10:00
Oliver 07319731d2 Validate that errors get logged 2022-05-19 13:20:42 +10:00
Oliver adaec90909 CI: Allow exchange rate test a few goes 2022-05-19 12:54:07 +10:00
Oliver af88f6ec97 python CI: wait for server before continuing 2022-05-19 11:55:53 +10:00
Oliver 80e3d0970a Adds unit tests for the samplepanel plugin 2022-05-19 11:28:18 +10:00
Oliver 11b21a9cca Allow registry.with_mixin to filter by active status 2022-05-19 11:00:31 +10:00
Oliver ebcb9685b5 Updates to samplepanel plugin
- Enhanced content for "hello world" panel
- Add an optional panel which breaks rendering
2022-05-19 10:04:20 +10:00
Oliver 14b60cdedc Custom panel content gets passed through the templating engine 2022-05-19 10:03:44 +10:00
Oliver 7d9690b974 Add logging message when plugin fails to render custom panels 2022-05-19 09:53:12 +10:00
Oliver 9446702d78 Skip plugin loading for various database admin functions 2022-05-19 09:45:16 +10:00
OliverandGitHub e1a0261888 Merge pull request #3032 from rkalman/fix-mfpartdetailtemplate
Fix manufacturer part detail template
2022-05-19 08:31:08 +10:00
Oliver Walters 0831b85e29 Adding some unit tests for SalesOrderLineItem API 2022-05-19 01:39:16 +10:00
OliverandGitHub 8ceff063f8 Merge pull request #3027 from SchrodingersGat/locate-plugin-fix
Fix broken calls to offload_task
2022-05-18 23:42:26 +10:00
Oliver Walters c6590066b8 Add tests for successful location
- Sample plugin now updates metadata tag
2022-05-18 22:46:15 +10:00
Oliver Walters dd476ce796 Add unit tests for the 'locate' plugin
- Test various failure modes
- Some of the failure modes didn't fail - this is also a failure
- Fixing API code accordingly
2022-05-18 22:20:29 +10:00
OliverandGitHub d6ebf3fc24 Merge pull request #2912 from sur5r/issue2314
Implement Attachments for manufacturer parts
2022-05-18 22:14:08 +10:00
Oliver Walters 0e0ba66b9a Fix broken calls to offload_task 2022-05-18 21:40:53 +10:00
Oliver Walters aa3a86f372 Exclude metadata from StockLocation and StockItem model resource class 2022-05-18 21:33:40 +10:00
OliverandGitHub 146335730e Merge pull request #3026 from SchrodingersGat/plugin-panel-error-catch
Catch errors when rendering custom plugin panels
2022-05-18 17:26:21 +10:00
Oliver 4ceb35a43f Fix PEP issue 2022-05-18 17:00:20 +10:00
Oliver 6147afe35f Catch errors when rendering custom plugin panels 2022-05-18 16:54:57 +10:00
OliverandGitHub bb83c0d53e Merge pull request #3025 from SchrodingersGat/docker-ci-fix
Docker ci fix
2022-05-18 16:15:59 +10:00
Oliver 2fde482eab Simplify steps 2022-05-18 15:39:58 +10:00
Oliver 3e05c5fde1 Bring docker containers down 2022-05-18 15:12:19 +10:00
Oliver ea3133be1d Combine docker-build and docker-test CI steps
- We are building anyway, may as well test
2022-05-18 15:11:37 +10:00
OliverandGitHub fd2ec03fab Merge pull request #2993 from SchrodingersGat/webp-support
webp image support
2022-05-18 14:43:28 +10:00
Oliver f53c8865ad Only run docker build on push 2022-05-18 14:14:40 +10:00
Oliver 810671f423 Yet another fix 2022-05-18 13:40:57 +10:00
Oliver 0f1dd3fe65 Same fix for config file test 2022-05-18 13:02:23 +10:00
Oliver e57087de63 Fix unit test 2022-05-18 12:19:10 +10:00
Oliver 3b53260d75 Allow some variation in unit test 2022-05-18 11:51:14 +10:00
Oliver 2cfa4c0a16 Merge remote-tracking branch 'matmair/webp-support' into webp-support
# Conflicts:
#	InvenTree/InvenTree/tests.py
2022-05-18 11:13:26 +10:00
OliverGitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
db75c31f6d Translation merge (#3022)
* 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

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-18 08:27:42 +10:00
Oliver Walters b6c2ade940 Add unit test for downloading Part data 2022-05-18 07:52:29 +10:00
Oliver Walters 1c6d79451e Don't decode downloaded .xls file 2022-05-18 07:25:43 +10:00
Oliver Walters c5b14944a1 Unit tests for downloading BuildOrder data 2022-05-18 00:31:43 +10:00
Oliver Walters 0d078768fe Unit tests for downloading PurchaseOrder data 2022-05-18 00:08:11 +10:00
Oliver Walters a6be0b32c6 Add unit tests for exporting SalesOrder data 2022-05-17 23:48:58 +10:00
Oliver Walters 3488da19b0 Return data as a list of dict objects 2022-05-17 23:47:09 +10:00
Oliver Walters a44267c306 bug fix 2022-05-17 23:22:40 +10:00
Oliver Walters 920e7e0bb7 Adds helper function to process and validate a downloaded .csv file 2022-05-17 23:21:30 +10:00
Oliver Walters 55000d5c48 Add ability to download file as StringIO or BytesIO 2022-05-17 22:28:46 +10:00
Oliver Walters fd9f25dc0d Adds helper function for testing a file download via the api 2022-05-17 21:26:33 +10:00
OliverandGitHub a8eef0870c Merge pull request #3010 from SchrodingersGat/shipment-assign-fix
SalesOrderShipment allocation fix
2022-05-17 20:25:57 +10:00
OliverandGitHub d16a880417 Update README.md
Add link to coveralls badge
2022-05-17 20:19:12 +10:00
Oliver Walters f4b470c396 Merge remote-tracking branch 'inventree/master' into shipment-assign-fix 2022-05-17 18:48:57 +10:00
Oliver Walters dc2351748c Merge remote-tracking branch 'inventree/master' into webp-support 2022-05-17 18:48:19 +10:00
OliverandGitHub b08a98f7a4 Merge pull request #3018 from SchrodingersGat/remove-unicode-literals
Remove more python2 stuff
2022-05-17 17:26:55 +10:00
Oliver 9bcbaaa5f5 Remove more python2 stuff 2022-05-17 16:57:31 +10:00
OliverandGitHub c4dfb03fd2 Merge pull request #3017 from SchrodingersGat/build-output-delete-fix
Bug Fix: Build output delete API endpoint
2022-05-17 16:33:37 +10:00
Oliver e7b458978c More unit tests 2022-05-17 15:10:48 +10:00
Oliver 01a30935f0 Add unit tests for BuildOutputDelete serializer 2022-05-17 14:20:41 +10:00
Oliver 5a0acedce6 Add unit tests for BuildOutputCreate serializer 2022-05-17 13:00:53 +10:00
Oliver 256451d82b Fix context such that build output can be deleted 2022-05-17 11:52:42 +10:00
OliverandGitHub 334025b844 Merge pull request #3014 from matmair/matmair/issue3005
Add more tests for offload_task
2022-05-17 11:11:20 +10:00
Oliver Walters 825c50a438 Change import style 2022-05-17 08:40:43 +10:00
Oliver Walters aa7fcb3601 Remove status_code addition 2022-05-17 08:23:39 +10:00
Oliver Walters 027a7c88de Copy error implementation from django-error-report lib
Ref: https://github.com/mhsiddiqui/django-error-report/blob/master/error_report/middleware.py
2022-05-17 01:17:48 +10:00
OliverandGitHub 1b507d53d0 Merge pull request #3001 from matmair/devops-isort
Add isort
2022-05-17 01:06:48 +10:00
Oliver Walters 048f1ad601 Simplify DRF exception handler
- Check the default handler first
- If *any* other API requets throws an exception, will now pass through the custom handler
2022-05-17 01:03:02 +10:00
Oliver Walters 2509db2b88 JS linting 2022-05-17 00:52:01 +10:00
OliverandGitHub c51f052f25 Merge pull request #3011 from matmair/matmair/issue2996
Remove python 2 code
2022-05-17 00:51:31 +10:00
Oliver Walters 27930cd897 PEP style fixes 2022-05-17 00:41:03 +10:00
Oliver Walters 3373bb19f1 Remove unique_together requirement on SalesOrderAllocation model 2022-05-17 00:36:30 +10:00
Oliver Walters 263ac01727 Typo fix 2022-05-17 00:35:59 +10:00
Oliver Walters 6512c0061e Catch a 500 and make it a 400
While we are at it, convert __all__ to non_field_errors automatically
2022-05-17 00:35:24 +10:00
Oliver Walters ae50546ca6 Display API error information if available 2022-05-17 00:25:32 +10:00
Oliver Walters 1488a0e72f Adds a custom exception handler for DRF
- Handles common exceptions not captured by DRF
- Returns exeption data as a JSON object
2022-05-17 00:18:47 +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 7e6d3d81b9 Update dockerfile to 3.14 2022-05-16 21:47:09 +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 206da02328 Skip some git hash checks if running tests under docker 2022-05-16 00:21:05 +10:00