From f8e743aba3324a3353cb6ce6dc72462e81944194 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Carreras Date: Wed, 18 Feb 2026 14:51:12 +0000 Subject: [PATCH] [FIX]purchase_stock_ux: product_uom --- purchase_stock_ux/models/purchase_order_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase_stock_ux/models/purchase_order_line.py b/purchase_stock_ux/models/purchase_order_line.py index 134ccbbd..bbd9bcf4 100644 --- a/purchase_stock_ux/models/purchase_order_line.py +++ b/purchase_stock_ux/models/purchase_order_line.py @@ -159,7 +159,7 @@ def _compute_qty_returned(self): for move in line.move_ids.filtered( lambda m: m.state == "done" and m.location_id.usage != "supplier" and m.to_refund ): - qty += move.product_uom._compute_quantity(move.product_uom_qty, line.product_uom) + qty += move.product_uom._compute_quantity(move.product_uom_qty, line.product_uom_id) line.qty_returned = qty # Overwrite the origin method to introduce the qty_on_voucher