From 35a048deead801b822efba67d48102446eedc2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Thu, 28 Dec 2023 12:25:05 +0100 Subject: [PATCH] Rename move uom to unit to compute credit limit quantity Since 7129f417a22c the unit field has been renamed on stock move. Closes #12875 --- modules/sale_credit_limit/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sale_credit_limit/sale.py b/modules/sale_credit_limit/sale.py index 0fd0e0c8f9..e413e31ff4 100644 --- a/modules/sale_credit_limit/sale.py +++ b/modules/sale_credit_limit/sale.py @@ -40,7 +40,7 @@ class Line(metaclass=PoolMeta): if self.sale.invoice_method == 'shipment': for move in self.moves_ignored: quantity -= UoM.compute_qty( - move.uom, move.quantity, self.unit, round=False) + move.unit, move.quantity, self.unit, round=False) for invoice_line in self.invoice_lines: if invoice_line.invoice in self.sale.invoices_ignored: quantity -= UoM.compute_qty(