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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user