-
-
Notifications
You must be signed in to change notification settings - Fork 552
[MIG] mrp_multi_level_consume_safety_stock: Migration to 18.0
#1682
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
base: 18.0
Are you sure you want to change the base?
[MIG] mrp_multi_level_consume_safety_stock: Migration to 18.0
#1682
Conversation
This module complements the `mrp_multi_level` module by allowing to set a date on the mrp.area records until which no attempt to rebuild safety stock will be attempted: the safety stock will be used, if the running stock get below zero, then a resupply will be created to bring back the stock to zero. The idea is that your area may be under tension at a given moment (maybe some workers are off, maybe there is high demand from customers) and you can barely keep up with the demand. In this case, you can set Safety stock rebuild lead date to a date in the future at which you anticipate that the situation will have been fixed.
|
Hi @LoisRForgeFlow, @JordiBForgeFlow, |
mrp_multi_level_consume_safety_stock: Migration to 18.0
…as the target date is reached, even if a supply comes a few days after (Needed for `mrp_multi_level_consume_safety_stock` tests to pass) This completes OCA@57cba495: If I have 0 units, my safety stock is 5 units and its target date is tomorrow, the procurement recommendation should be 5 units for tomorrow, even if I have a resupply of 5 the day after tomorrow.
a684446 to
8fc61e3
Compare
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.
@Camille0907 This is outside of the migration, can you add a test case for this?
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.
From the commit message, a test case already covers this, but was previously failing (TBC)
Migration of
mrp_multi_level_consume_safety_stockto 18.0 (from #1169)Also add a small fix into
mrp_multi_level: Ensure the safety stock is rebuilt as soon as the target date is reached, even if a supply comes a few days after (Needed formrp_multi_level_consume_safety_stocktests to pass)This completes 57cba495:
If I have 0 units, my safety stock is 5 units and its target date is tomorrow, the procurement recommendation should be 5 units for tomorrow, even if I have a resupply of 5 the day after tomorrow.