diff --git a/sale_order_qty_change_no_recompute/__manifest__.py b/sale_order_qty_change_no_recompute/__manifest__.py index d97728ba074..c034fb5ea00 100644 --- a/sale_order_qty_change_no_recompute/__manifest__.py +++ b/sale_order_qty_change_no_recompute/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Sale Order Qty change no recompute", "summary": "Prevent recompute if only quantity has changed in sale order line", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "category": "Sale Workflow", "website": "https://github.com/OCA/sale-workflow", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/sale_order_qty_change_no_recompute/models/sale_order.py b/sale_order_qty_change_no_recompute/models/sale_order.py index 34fb463c5f3..c9d471dc715 100644 --- a/sale_order_qty_change_no_recompute/models/sale_order.py +++ b/sale_order_qty_change_no_recompute/models/sale_order.py @@ -17,7 +17,7 @@ def _onchange_eval(self, field_name, onchange, result): inheritance between Python and Odoo ORM, so we can consider this as a HACK. """ ctx = self.env.context - if field_name == "product_uom_qty" and ( + if field_name in {"product_uom_qty", "product_uom"} and ( not config["test_enable"] or (config["test_enable"] and ctx.get("prevent_onchange_quantity", False)) ):