← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 576657] Re: Incorrect standard price calc with product_extended and UOM's

 

we don't plan to work on this module as it is not quality certified.
I someone is ready to contribute, please reopen and assign to you.

** Changed in: openobject-addons
       Status: New => Won't Fix

-- 
Incorrect standard price calc with product_extended and UOM's
https://bugs.launchpad.net/bugs/576657
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Won't Fix

Bug description:
Purchase nails by the box of 3000, so the default UOM is "Each - 3000" and the price is 44.95. If I create a BOM line with a UOM of Each (1/3000) 'Compute standard price' gives me a price $134,850. 

Line 141 looks to have the to and from UOM reversed. Currently it is:

     price = self.pool.get('product.uom')._compute_price(cr,uid,bom.product_uom.id,price,bom.product_id.uom_id.id)

I believe it should be:

     price = self.pool.get('product.uom')._compute_price(cr,uid,bom.product_id.uom_id.id,price,bom.product_uom.id) 

Patch attached.