Rename Uom to Unit for move

Closes #12561
This commit is contained in:
Cédric Krier
2023-09-13 09:42:02 +02:00
parent 208ac87281
commit e2e767fae2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ class Sale(IdentifierMixin, metaclass=PoolMeta):
for move in line.moves:
if move.state == 'done':
quantity -= Uom.compute_qty(
move.uom, move.quantity, line.unit)
move.unit, move.quantity, line.unit)
quantity = min(fulfillable_quantity, quantity)
if quantity > 0:
yield {
+1 -1
View File
@@ -149,7 +149,7 @@ class Move(metaclass=PoolMeta):
return
identifier = self.origin.shopify_identifier
quantity = int(Uom.compute_qty(
self.uom, self.quantity, self.origin.unit))
self.unit, self.quantity, self.origin.unit))
for fulfillment_order in fulfillment_orders:
if fulfillment_order.assigned_location_id != location_id:
continue