[MRP] correct link between procurement orders and orderpoints (min stock rules)

Bug #499533 reported by Olivier Dony (Odoo)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 2

Bug Description

Several things need to be corrected in the Minimum stock rules / Order point (stock.warehouse.orderpoint):

1) stock.warehouse.orderpoint has a many2one relationship to a corresponding procurement orders. It should instead take into account all draft procurement orders that are valid for the corresponding product (and warehouse). So this relationship should be multiple. How about a function field for this?

2) all relevant draft procurement orders (targets of the relationship defined above) should be taken into account when deciding whether a minimum stock rule needs to generate a new procurement order (in the orderpoint scheduler)

3) in any case, the field linking to procurement ids should be named appropriately, e.g "Related Procurement Orders" and certainly not "Purchase Order", as the procurement_id field is currently named.

Thanks,

Tags: mrp trunk
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

For 1. I propose the replace the relation into a many2many on the procurement to the purchase orders. Change the computation to take into account all draft PO.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Wishlist → Medium
milestone: 2009-12 → none
qdp (OpenERP) (qdp)
Changed in openobject-addons:
milestone: none → 6.0-rc2
Revision history for this message
Kirti Savalia(OpenERP) (ksa-openerp) wrote :

Hello Olivier Dony ,

 it has been fixed in branch lp:~openerp-dev/openobject-addons/ksa-addons2
 Revision NO - 3872 to 3877

Thanks.

Changed in openobject-addons:
status: Confirmed → Fix Released
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.