** Branch linked: lp:openobject-addons/6.0 -- You received this bug notification because you are a member of C2C OERPScenario, which is subscribed to the OpenERP Project Group. https://bugs.launchpad.net/bugs/628702
Title: [mrp] action_po_assign() sometimes gets the price from the wrong supplier (5.0) Status in OpenERP Modules (addons): Fix Released Status in OpenERP Addons 5.0 series: Fix Released Status in OpenERP Addons 6.0 series: Fix Released Bug description: Hi! 5.0 latest bzr. When generating POs, the procurement selects a supplier but sometimes finds the price of another supplier for the product. Example: Supplier A with a supplier price list defined as 'Partner section of the product form' Supplier B with a supplier price list defined as 'Partner section of the product form' Open a product and delete all the supplier information. Add Supplier B first and set qty 1 and price 200. Save. Then add Supplier A and set qty 1 and price 100. Save. Now set the sequence (priority) for Supplier B to 2. Now Supplier A is the first on the list with the sequence of 1. Set some orderpoint and generate POs with compute minimum stock rules. Expected result: The PO should be generated for Supplier A with the price of 100. Cancel the PO. On the product form set Supplier A sequence to 2. On the product form set Supplier B sequence to 1. Now Supplier B is the first on the list with the sequence of 1. Generate POs with compute minimum stock rules. Expected result: The PO should be generated for Supplier B with the price of 200. Check both POs, one should be for Supplier A with the price of 100 and one should be for Supplier B with the price of 200. Problem: In the reality, both POs will have the same price, even they are for different suppliers. Because partner_id is not passed to price_get(). See the patch attached. _______________________________________________ Mailing list: https://launchpad.net/~c2c-oerpscenario Post to : [email protected] Unsubscribe : https://launchpad.net/~c2c-oerpscenario More help : https://help.launchpad.net/ListHelp

