- When a BomItem is created or edited, update any active build orders which use it
- Runs as a background task
- Fixes https://github.com/inventree/InvenTree/issues/5541
(cherry picked from commit c8021ec319)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Fix missing filters for get settings validator (#5480)
* Fix missing filters for get settings validator
* merge default model instance filters and kwargs
* Added tests for validators
* Give it a try without the kwargs passed to clean in save function
* Added string for identification for debug statement
* Added more debug comments
* Added more debug prints
* Fix test debug
* Modiefied workflow
* trigger ci
* Fix test and remove unused kwargs
* Added debug prints
* Only run one test in ci
* Added more debug code
* Remove all debug prints and reset workflow
* Reset overlooked file
(cherry picked from commit 9a6c2d2953)
# Conflicts:
# InvenTree/plugin/samples/integration/test_sample.py
* Add missing import
* Added second missing import
* Handle login without supplier user
- Use custom login form
- Redirect back to login page
- No longer throws error
* Fix method return
(cherry picked from commit 71ad4a1c99)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Use urljoin function to construct absolute URL
* Add unit test
(cherry picked from commit 8da5d62c69)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Does not work with custom backend
- Throws error if the button is pressed
- So, remove the button
(cherry picked from commit a2f614ad41)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Catch IndexError when importing data
* Also handle TypeError
(cherry picked from commit 93e4dadb49)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Check that the database model really does exist in the template code
(cherry picked from commit a8118ed406)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Fix debug messages
* Fix bug in purchase history chart
- Use new pack_quantity_native attribute
(cherry picked from commit 86ca0b27a4)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* fix cli on 22.04 (#5204)
(cherry picked from commit d4fad4f5c8)
* Update weasyprint docs link
* Another link fix
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
- Creation of BuildItem objects was using old model references
(cherry picked from commit 668dab4175)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* add error log on SSO check failure
* sso_check_provider: fix by comparing against id
the name is the pretty printed version which not necessarily is the same
as the provider id it is compared against. This fails e.g. for the
microsoft allauth extension where the id is microsoft, but the name is
"Microsoft Graph".
Closes: #5330
(cherry picked from commit ee5416719f)
Co-authored-by: Hendrik v. Raven <hendrik@consetetur.de>
- Other request methods need love too!
(cherry picked from commit 59ffdcaa19)
(cherry picked from commit b89a120f9e)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Re-throw as a ValidationError
- Results in a 400 error, not a 500
(cherry picked from commit 5f3d3b28b3)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Add "get_fields()" method to InvenTreeResource
- Override default behaviour and exclude some common fields
- Will flow down to any inheriting classes
(cherry picked from commit 941451203a)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Change for DEFAULT_FROM_EMAIL
- Use USERNAME if not specified
(cherry picked from commit 487ac917c90e9fe3da4effaa9326b707ceecd321)
* Email configuration fails if DEFAULT_FROM_EMAIL not set
(cherry picked from commit 01e573c3a2702e7c21ed13b0cb44280c89d3dee1)
* Docs update
(cherry picked from commit bfedb9cf87)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Hide protected setting in settings view
* Implement custom serializer for setting value
- Return '***' if the setting is protected
* Implement to_internal_value
* Stringify
* Add protected setting to sample plugin
* Unit tests for plugin settings API
* Update unit test
(cherry picked from commit 01f2aa5f74)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Fix quantity aggregation for stock table
- Stock quantity can only be added together if units are the same
* Add stock total footer to part table
(cherry picked from commit 773dd3b210)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Handle AttributeError in convert_physical_value
* Added new unit test
(cherry picked from commit 9abcc0ec34)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Handle exception when creating default labels
- Running workers in parallel may cause race conditions
- Catch any exception which is raised
* Prevent password from being logged
* Update default timeout for docker
(cherry picked from commit 8b730884d7)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>