Repository navigation
Allocate mixin - #12914
Merged
SchrodingersGat merged 6 commits intoSep 22, 2026
Merged
Allocate mixin#12914
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
This was referenced Sep 22, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #12914 +/- ##
==========================================
- Coverage 86.44% 86.19% -0.25%
==========================================
Files 1469 1472 +3
Lines 100566 101160 +594
Branches 11141 11141
==========================================
+ Hits 86934 87199 +265
- Misses 13566 13895 +329
Partials 66 66
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
matmair
approved these changes
Sep 22, 2026
matmair
left a comment
Member
There was a problem hiding this comment.
Looks good to me;
Maybe it makes sense in a separate PR to create a allocation state machine that tracks how these decisions are made and move the whole thing out of the model?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11678
Adds a new plugin mixin class which supports customization of auto-allocation against orders. Plugins can choose to adjust the auto-allocated / auto-selected stock, which allows low level control of how auto-allocation functions, without imposing limitations or complex configuration of default InvenTree behaviour