← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 628702] Re: [mrp] action_po_assign() sometimes gets the price from the wrong supplier (5.0)

 

Hello JMA,

The user doesn't select any supplier but OpenERP selects a supplier when
the mrp scheduler for order points runs.

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

  Problem: The PO will be generated for Supplier A but the product will have the price of 200 (from Supplier B).
  Because partner_id is not passed to price_get(). See the patch attached.