Community mailing list archives

Wrong margin when using UOS

Mustafa Al Saeedi
- 03/26/2016 06:15:18

I faced an issue with calculating right margin on sales order when using unit of sale other that unit of measure.

e.g. when I sale (50 pcs) of product X that has  

uom = pcs (piece)
uom cost price = 5.97
uom sale price = 7.2
uos = square meter
uos coeff = 1.5

with total 50 x 7.2 = 360

where the margin, according how I do understand is
7.2 - 5.97 = 1.23 
then the expected margin is 50 x 1.23 = 61.5

BUT I get -88.4 as a margin

when don't use uos everything works fine

I forget to mention that the impacted version of odoo is 8.0-20160103

I hope to hear your opinions