← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 738146] Re: Problem with the pricelist of type "Partner section of the product form" + problems with price calculation in the sale order form

 

Same problem here with the calculation of the unit price in the sale order form. 
You can reproduce the bug with the online demo : 
Create a new order : customer = agrolait
Create a new order line : product = employee, qty = 1, UOM = hour
Unit price = 200, this is OK
Change the UOM to day, the unity price is now to 12 800. 
The unit price should be  200 x 8 = 1600 (and not 200 x 8 x 8 = 12800)

-- 
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/738146

Title:
  Problem with the pricelist of type "Partner section of the product
  form" + problems with price calculation in the sale order form

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  First problem:
  It use a "product template id" to  read  from  "product_product" table ( this is Ok when we have one product for a product template but is not Ok in case of multi products
  Second case:
  The calculation of the price in the sale order form is incorrect when the selected unit of measure is different from the stock unit of mesure, the problem is connect with  context attribute passed in the the price_get (product.product)  method inside the the price_get_multi method in the pricelist.py class



References