From abd84db34799d550c1aff852aece41a554b09715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 20 Jan 2022 19:04:56 +0100 Subject: [PATCH] Convert unit_price_company from product uom to move uom issue10972 review385391002 (grafted from 20d76675d09f6b2f104df90c14c2b4d8052fe58c) --HG-- branch : 6.0 --- stock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stock.py b/stock.py index 6c07a78aaa..6d831ce73e 100644 --- a/stock.py +++ b/stock.py @@ -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)