changeset 20d76675d09f in modules/account_stock_continental:default
details: 
https://hg.tryton.org/modules/account_stock_continental?cmd=changeset&node=20d76675d09f
description:
        Convert unit_price_company from product uom to move uom

        issue10972
        review385391002
diffstat:

 stock.py |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 905eace9ee70 -r 20d76675d09f stock.py
--- a/stock.py  Sat Dec 18 16:29:40 2021 +0100
+++ b/stock.py  Thu Jan 20 19:04:56 2022 +0100
@@ -27,8 +27,9 @@
                 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)
 

Reply via email to