diff --git a/modules/web_shop_shopify/sale.py b/modules/web_shop_shopify/sale.py index c8193eaa68..7b0e4f7693 100644 --- a/modules/web_shop_shopify/sale.py +++ b/modules/web_shop_shopify/sale.py @@ -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 { diff --git a/modules/web_shop_shopify/stock.py b/modules/web_shop_shopify/stock.py index 0645a226fe..7ddcfadaa2 100644 --- a/modules/web_shop_shopify/stock.py +++ b/modules/web_shop_shopify/stock.py @@ -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