[FIX] pricelist: correctly take into account uom when computing pricelists based...
authorMartin Trigaux <mat@openerp.com>
Tue, 11 Feb 2014 14:57:03 +0000 (15:57 +0100)
committerMartin Trigaux <mat@openerp.com>
Tue, 11 Feb 2014 14:57:03 +0000 (15:57 +0100)
commitebdb23069958e740bb51a63a99f248336e1adaed
treeb5063544d71834892659be6d78a1bd6ff824bcc1
parentc00c424221125997ab48141e607c8a51f7417353
[FIX] pricelist: correctly take into account uom when computing pricelists based on supplier price on product form (opw 595881)

The previous behaviour used the uom of product while it could be a different one selected (by default the purchase unit of measure for purchase orders).
This was an issue especially when having different uom with supplier info lines setting degressive prices. The price should be computed based on selected uom and not the product uom.

bzr revid: mat@openerp.com-20140211145703-9uut4hw9aqh7326o
addons/product/pricelist.py