c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16361
[Bug 628702] Re: [mrp] action_po_assign() sometimes gets the price from the wrong supplier (5.0)
Hello Dukai,
Thank you for the description you provided.
Unfortunately am not able to generate the scenario that you posted.
I had these two doubts:
1. Are you sure, you save the record once you change the priority for the suppliers on the product form?
2. When you make a PO you are asked to select a Supplier.
And in order to have the prices that we have set 'As partner Section Of the Product form' you need to select the Supplier A or Supplier B else you would not get the price that you have set.
I guess it would be better if you share a video.
Even we would like to meet the mishap.
Thank you Dukai.
Regards,
JMA.
--
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):
Triaged
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.