[FIX] product: pricelist, uom and price_surcharge
authorMartin Trigaux <mat@odoo.com>
Thu, 23 Oct 2014 15:14:19 +0000 (17:14 +0200)
committerMartin Trigaux <mat@odoo.com>
Fri, 24 Oct 2014 15:21:42 +0000 (17:21 +0200)
commit79ebe1060d7a6303dbd5ff6e401aec5337161883
treee1c0c1012ad944e907e132aa20293a1307688eba
parentd2fd05ef21173060a74958514860a9981428ec3d
[FIX] product: pricelist, uom and price_surcharge

The price_surcharge attribute must be computed based on the reference unit of measure (divided by the factor).
This is to make sure than 12 units and 1 dozen have the same price after pricelist computation (opw 599727).

Added test checking the correctness of pricelist computation based on unit of measures.
addons/product/pricelist.py
addons/product/tests/__init__.py
addons/product/tests/test_pricelist.py [new file with mode: 0644]