[FIX] product_visible_discount: discount with different unit of measures
authorMartin Trigaux <mat@odoo.com>
Fri, 24 Oct 2014 14:07:55 +0000 (16:07 +0200)
committerMartin Trigaux <mat@odoo.com>
Fri, 24 Oct 2014 15:21:42 +0000 (17:21 +0200)
commit42bf0a567003168029508e0b501d6aef7876e41f
tree5a6f898721a3f63ddb99b2aa84667d9c965acc93
parent79ebe1060d7a6303dbd5ff6e401aec5337161883
[FIX] product_visible_discount: discount with different unit of measures

The computation of the price without pricelist should take care of the unit of measure.
e.g. if computing discount for objects in dozen (on a product with price in unit), returned unit price should be (price*12) where 12 is the factor to go from dozen to unit.
Otherwise the compared prices (with and without pricelist) would not use the same unit of measure and the comparaison would be inconsistent. (opw 599727)
addons/product_visible_discount/product_visible_discount.py