From e2e767fae2e75f88cf50ca4d0d53ef5571294cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Sep 2023 09:42:02 +0200 Subject: [PATCH] Rename Uom to Unit for move Closes #12561 --- modules/web_shop_shopify/sale.py | 2 +- modules/web_shop_shopify/stock.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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