-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[14.0][IMP] stock_reserve_rule: add full lot strategy #1834
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
41e2088
[IMP] stock_reserve_rule: New removal strategy is added.
geomer198 e6affeb
[FIX] stock_reserve_rule: refactoring.
geomer198 e6de1fa
[FIX] stock_reserve_rule: View is updated.
geomer198 9fe2fbb
[FIX] stock_reserve_rule: description is updated.
geomer198 9a62218
[FIX] stock_reserve_rule: Module is restructured.
geomer198 dc8b21f
[FIx] stock_server_rule: Full Lot Stratagy is updated and test is added.
geomer198 bf210e9
[FIX] stock_reserve_rule: Code is refactored.
geomer198 10af719
[FIX] stock_reserve_rule: Bug fixed.
geomer198 b4adad6
[FIX] stok_reserve_rule: Code refactoring.
geomer198 99c8226
[IMP] stock_reserve_rule: Tests are added.
geomer198 7c4bfb9
[FIX] stock_reserve_rule: Code is fixed and tests are added
geomer198 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Stock Reservation Rules | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:80f49ac641c2a8bede920d6378719dcedc8e81d45ee91c5388c8450d5c526d26 | ||
!! source digest: sha256:f0f580bceed65878a874bcbfe6aaf70570a3821643867b635e36496e354e1df1 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -51,6 +51,18 @@ The included advanced removal strategies are: | |
* Full Packaging: tries to remove full packaging (configured on the products) | ||
first, by largest to smallest package or based on a pre-selected package | ||
(default removal strategy is then applied for equal quantities). | ||
* Full lot: tries to remove a complete lot. | ||
This strategy requires to select if a tolerance should be applied on lot selection, | ||
allowing to select lots with qty higher or lower than qty requested in picking. | ||
Rules can be applied in sequence, for example, to first check for exact lot qty, | ||
then for a lot with qty 5% higher than requested, then for a lot with qty 10% higher | ||
than requested, and so on. | ||
|
||
If lot selected must have same qty as requested, set "Tolerance on = No tolerance"; | ||
otherwise it's possible to select a lot with higher qty (Tolerance on = Upper Limit") | ||
or lower qty ("Lower Limit"), either in percentage of qty or absolute value. | ||
Please note that three "No tolerance" or "Upper limit" or "Lower limit" rules. | ||
|
||
|
||
Examples of scenario: | ||
|
||
|
@@ -128,8 +140,7 @@ Scenario: | |
and see the rules (by default in demo, the rules are created inactive) | ||
* Open Transfer: Outgoing shipment (reservation rules demo 1) | ||
* Check availability: it has 150 units, as it will not empty Zone A, it will not | ||
take products there, it should take 100 in B and 50 in C (following the rules | ||
order) | ||
take products there, it should take 100 in B and 50 in C (following the rules order) | ||
* Unreserve this transfer (to test the second case) | ||
* Open Transfer: Outgoing shipment (reservation rules demo 2) | ||
* Check availability: it has 250 units, it can empty Zone A, it will take 200 in | ||
|
@@ -160,6 +171,7 @@ Contributors | |
|
||
* Guewen Baconnier <[email protected]> | ||
* Jacques-Etienne Baudoux (BCIM) <[email protected]> | ||
* Cetmix <https://cetmix.com> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
* Guewen Baconnier <[email protected]> | ||
* Jacques-Etienne Baudoux (BCIM) <[email protected]> | ||
* Cetmix <https://cetmix.com> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from . import common | ||
from . import test_reserve_rule | ||
from . import test_reserve_rule_full_lot |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about having also "Within Limits" ?
(suggestion, non-blocking and non required)