From 2c1ad499b0b6fdc8654dc40bd0b470f8e23097e9 Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Tue, 1 Feb 2022 18:09:47 +0100 Subject: [PATCH] Use purchase_uom instead of sale_uom issue11200 review360841002 (grafted from aae404c4fd8c77882ac4173ace720615a8b6ba94) --HG-- branch : 6.0 --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index b66b7af8e6..106e953225 100644 --- a/product.py +++ b/product.py @@ -25,7 +25,7 @@ class Product(metaclass=PoolMeta): context_uom = UoM(context['uom']) if context.get('taxes'): taxes = Tax.browse(context.get('taxes')) - uom = context_uom or self.sale_uom + uom = context_uom or self.purchase_uom if uom.category != self.purchase_uom.category: uom = self.purchase_uom unit_price = price_list.compute(