openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25333
[Bug 1156681] Re: Need to run scheduler multiple times
** Also affects: ocb-addons
Importance: Undecided
Status: New
** Also affects: ocb-addons/6.1
Importance: Undecided
Status: New
** Changed in: ocb-addons/6.1
Status: New => Confirmed
** Changed in: ocb-addons/6.1
Importance: Undecided => Low
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1156681
Title:
Need to run scheduler multiple times
Status in OpenERP Community Backports (Addons):
New
Status in OpenERP Community Backports (Addons) 6.1 series:
Confirmed
Status in OpenERP Addons (modules):
Fix Committed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1156681/+subscriptions