* Improve custom maintenance mode backend (#9396)
* Improve custom maintenance mode backend
- Utilizing global settings functions
- Will use global cache if available
- Fewer DB hits per request
* Twaeak query limits
* Tweak test
* [Bug] mport fix (#9008)
* Better handling of request object in serializers
* Pass request object through
- Required to extract user information
* Strip column header during import
- Prevent mismatch due to whitespace
* Fix for "minimum stock" field
* Fix for part serializer
* Extract default values on import
* Remove outdated migration message
* Bump API version
* Reintroduce typo
- To prevent API change
* Force label printing to background worker
* Refactor "check_reload" state of machine registry
- In line with plugin registry
- More work can be done here (i.e. session caching)
* Better handling of call_plugin_function
* Wrapper for calling machine function
* Use AttributeError instead
* Simplify function offloading
* Check plugin registry hash when reloading machine registry
* Cleanup
* Fixes
* Adjust unit test
* Cleanup
* Allow running in foreground if background worker not running
* Simplify call structure
- Getting flodded with reports of users misapplied template filters
(cherry picked from commit 017d96f64e)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* [Bug] Fix search for StockTrackingList
- Removed invalid field
* Add unit test coverage for failing condition
* Fix 'notes' field for extra line item API
(cherry picked from commit 21ae1138ce)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* use ref pattern on PO duplicate
* use ref patterns on duplicate for other types of orders
* revert unintentional change to pre-commit
* add playwright tests
---------
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
(cherry picked from commit 2cabd02c6b)
Co-authored-by: Jacob Felknor <jacobfelknor073@gmail.com>
* Fix logic for adding items to SalesOrder
* Same thing for purchase orders
* Update serializers.py
Revert typo fix
- Otherwise, we need to do an API bump and the PR can't be back-ported!
(cherry picked from commit bc9dbf7df4)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Fix default values for pricing override
* Fix broken calculation for sale pricing
- Was previously excluding COMPLETED orders
* Fix for PricingOverviewPanel
* Fix for InvenTreeMoneySerializer
- Numbers should be represented as numbers!
* Front-end wrangling too
* Fix unit test
- Prevent shadow overwrite of default_values dict
- Remove dead code
(cherry picked from commit 7049e84ac3)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Unit test for SalesOrder data migration
* make field checks more stable
* Adjust migration strategy
* Fix for data migration
* Simplify login test for playwright
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
(cherry picked from commit a13f5681a1)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Add option to disable auto-reload of dev server
* Force plugin reload
* Add unit testing for plugin reload
- Requires modifications to registry.py
(cherry picked from commit 8e8b7158b7)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Include location detail in build output table
* Raise validation error if trying to split an in-production item
(cherry picked from commit 68d3620bb2)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Exclude "tags" fields from data import
- May reintroduce at a later date
- Currently, no support for editing tags in frontend
* Refactor
(cherry picked from commit 2575c7276c)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Increase upload timeout for attachments
* Increase default API timeout
- To account for distant connections
* Use longer timeout when uploading files
* Debug for RTD testing
* Adjust commit extraction
* Cleanup debug output
* Include more vars in output
* Move debug output to top of file
* Add useful link
(cherry picked from commit c7e960728d)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>