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