* Refactor clean check for BuildItem
* Don't raise an error when saving a BuildItem
* Fix order of operations
* remove debug statements
(cherry picked from commit 70fcaa7808)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Ensure only stock for "active" parts is considered
- Cleaner logic
(cherry picked from commit 02a95ffba8)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* change screenshot for plugin install to PUI
* Correct location of gunicorn config in docs
(cherry picked from commit 00091caf04)
Co-authored-by: Michael <michael@buchmann.ruhr>
* Fix for string form fields
- replace null values with empty strings
* Expose more serializer metadata
* Check if null values are not allowed
* Fix type
* Try removing feature
* Reduce deltas
* Remove extra field attrs entirely (for testing)
* Comment out changes
* Tweak form values
* Fix for form validation
(cherry picked from commit efc8fb816d)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Fixes bug related to importing null "rounding_multiple" BOM field
(cherry picked from commit 7920b0e670)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
In the case where we try to call refresh_from_db within an atomic transaction block, it will throw a TransactionManagementError
(cherry picked from commit 38b27271ac)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Extra checks on backend
* Bug fix for adjustment forms
- Set default quantity of zero
* Additional unit testing (to ensure no regression)
(cherry picked from commit 5713cff1cb)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* [UI] Fix for PartTestResultTable
- Filter properly by part instance
* Add a simple unit test
* Tweak unit test
(cherry picked from commit e590522909)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Properly set location id when serializing stock
* Add correct tracking entries
* Add unit test
(cherry picked from commit a7ff1250ba)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Add helper func getOverviewUrl
* Redirect to parent page when stock item is counted to zero
(cherry picked from commit 468efbacfc)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Additional checks for virtual parts in sales order process
* Prevent allocation against virtual parts
* Fix order of operations
* Adjust part form fields based on selections
* Prevent order locking
* Updated playwright tests
* Add unit test
(cherry picked from commit 7b38fa30bb)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Bug fix for sales order pricing
- Clear sale price field if no pricing
* Adjust playwright tests
(cherry picked from commit d06d80fb99)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* [UI] Fix for form OPTIONS query
- Fetch OPTIONs each time form is opened
- Ensure default values are filled correctly
- Prevent issues with latching form state
* Add comment
* Add playwright test
- Check that the reference field increments properly
* Fix other Playwright tests
(cherry picked from commit 770f7a292e)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Fix for setting custom status
* Fix for setting custom status when receiving stock items
* Allow caching for set_status
* Updated code and unit tests
(cherry picked from commit aa9958bf11)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Remove debouncing from text field
* Add debounce to data import field
* Only apply for strings values
* Fix unit test
* More unit test tweaks
(cherry picked from commit ba9b5438b4)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- Do not just cast to bool
- The string "False" casts to True in this case
- Use the function that supports strings
(cherry picked from commit 8cb808f613)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Extract note field when receiving stock items against PO
* Fix tracking entry when receiving item
(cherry picked from commit f3c1cc12af)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* fix(backend): auth check middleware for specific media access (#10784)
* simplify
* fix return type
* handle token (app access)
* reduce lookup amount
* add positive test again
* add poisitive test
* move out settings
* add tests for Check2FAMiddleware
* add test for auth_request
* add a reverse name for auth_request
* auth tests refactors
* move test
* disable check for things that do not trigger
* fix typing for python 3.9
* make names clearer and add comments
* finish tests
* fix call
* re-enable mfa test without the timing component
* cleanup helper
* ignore easy out
* ignore scenario that can not happen
(cherry picked from commit f3e8482469)
* fix merge
* Return more detail in MFA failure response
* Reject auth requests for users who are inactive
* Move markdown config out of settings.py
(cherry picked from commit 901846272b)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>