Files
Walid 168ec21e6e [FIX] stock: muliple rules leadtime
Steps to Reproduce on Runbot:
- Install MRP
- Create a second warehouse
- Go to Warehouse -> Routes -> Manufacturing.
- Set the "Supplied Warehouse" to the first warehouse.
- In Inventory > Opertaions > Replenishment
- Create a new Replenishment with Manufacturing route
- click on Replenishment information (small "i" button)
- Expected singelton traceback error.

Fix:
get_lead_time in Manufacturing expects a single rule
using _get_rule to deteermine the correct rule as the
comment sugessted

opw-3838099

closes odoo/odoo#163318

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2024-04-26 17:18:00 +00:00
..