Need to run scheduler multiple times

Bug #1156681 reported by Sylvain Garancher
6
This bug affects 1 person
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

Revision history for this message
Sylvain Garancher (sylvain-garancher) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Ravish(OpenERP) (rmu-openerp) wrote :

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. !!

Changed in openobject-addons:
status: New → Incomplete
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.