From 691857edff54047ddb3f8cbca3ad37890de09176 Mon Sep 17 00:00:00 2001 From: augusto-weiss Date: Thu, 18 May 2023 10:39:07 -0300 Subject: [PATCH] [FIX] product_pack: update_price from sale order --- sale_ux/models/sale_order.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sale_ux/models/sale_order.py b/sale_ux/models/sale_order.py index 1da3769dd..d601cd69f 100644 --- a/sale_ux/models/sale_order.py +++ b/sale_ux/models/sale_order.py @@ -112,7 +112,10 @@ def update_prices(self): else: line.expand_pack_line(write=True) - line.product_uom_change() + if pack_installed and line.product_id.pack_ok: + continue + else: + line.product_uom_change() line._onchange_discount() return True