Convert unit_price_company from product uom to move uom
issue10972 review385391002 (grafted from 20d76675d09f6b2f104df90c14c2b4d8052fe58c) --HG-- branch : 6.0
This commit is contained in:
1 parent
6a28fc4efe
commit
abd84db347
1 file changed
+3
-2
@@ -27,8 +27,9 @@ class Move(metaclass=PoolMeta):
|
||||
and self.product.cost_price_method != 'fixed'):
|
||||
unit_price = self.unit_price_company
|
||||
else:
|
||||
unit_price = Uom.compute_price(self.product.default_uom,
|
||||
self.cost_price, self.uom)
|
||||
unit_price = self.cost_price
|
||||
unit_price = Uom.compute_price(self.product.default_uom,
|
||||
unit_price, self.uom)
|
||||
amount = self.company.currency.round(
|
||||
Decimal(str(self.quantity)) * unit_price)
|
||||
|
||||
|
||||
Reference in new issue
Block a user