Rename move uom to unit to compute credit limit quantity

Since 7129f417a22c the unit field has been renamed on stock move.

Closes #12875
This commit is contained in:
Adrià Tarroja Caubet
2023-12-28 12:25:05 +01:00
parent de9abf43cc
commit 35a048deea
+1 -1
View File
@@ -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(