Need to run scheduler multiple times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP Publisher's Warranty Team | ||
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned | ||
6.1 |
Confirmed
|
Low
|
Unassigned |
Bug Description
Depending on the creation order of orderpoints, we need to run the procurements multiple times.
To reproduce the bug :
Create a new database without demo data
Install the mrp module
Create a supplier partner
Create 2 products :
- Product A :
-> type: stockable product
-> supply_method: buy
-> Add the supplier in supplierinfo
- Product B :
-> type: stockable product
-> supply_method: produce
Create 2 orderpoints IN THIS ORDER (this is what causes the bug, otherwise, it works) :
- Product A (min qty 0)
- Product B (min qty 1)
Create a BoM for product B which uses Product A as a component
Launch the procurements scheduler one time :
- A manufacturing order for product B is created
- No purchase order for product A is created
Launch the procurements scheduler a second time : The missing purchase order is created
As noted previously, if the orderpoints are created in the other order, the system works fine.
I have created a patch which determines the order in which the requirements have to be calculated, before running the requirement planning. This means that the system is no longer dependant on the orderpoint creation order.
Related branches
- Naresh(OpenERP): Pending requested
-
Diff: 97 lines (+56/-3)2 files modifiedmrp/procurement.py (+51/-1)
procurement/schedulers.py (+5/-2)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Hello,
It have been fixed in following branch with following Revision Number and Revision ID
https:/ /code.launchpad .net/~openerp- dev/openobject- addons/ 6.1-opw- 590227
Revision No: 7190
Revision ID: <email address hidden>
Thank you for your contribution.It will merge soon. !!