From 2d8690fb9f096f93084e8ef626856f4b4aaa39f8 Mon Sep 17 00:00:00 2001 From: LuvForAirplanes Date: Thu, 2 Apr 2026 17:35:28 -0400 Subject: [PATCH] [FIX] product_variant_sale_price: fix double UoM calculations Fix issue where changing the quantity on a sales order line after the UoM had been changed resulted in a double UoM conversion --- product_variant_sale_price/models/product_product.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/product_variant_sale_price/models/product_product.py b/product_variant_sale_price/models/product_product.py index ce914f409..e4a700186 100644 --- a/product_variant_sale_price/models/product_product.py +++ b/product_variant_sale_price/models/product_product.py @@ -28,13 +28,8 @@ def _compute_lst_price(self): product.lst_price = price def _compute_list_price(self): - uom_model = self.env["uom.uom"] for product in self: - price = product.fix_price or product.product_tmpl_id.list_price - if self.env.context.get("uom"): - context_uom = uom_model.browse(self.env.context["uom"]) - price = product.uom_id._compute_price(price, context_uom) - product.list_price = price + product.list_price = product.fix_price or product.product_tmpl_id.list_price def _inverse_product_lst_price(self): uom_model = self.env["uom.uom"]