details: https://code.tryton.org/tryton/commit/f82f561062e6
branch: default
user: Cédric Krier <[email protected]>
date: Thu Oct 29 18:16:51 2026 +0100
description:
Use Shopify unit from product parameter instead of the product attribute
Closes #15202
diffstat:
modules/web_shop_shopify/sale.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dce78b61f6f9 -r f82f561062e6 modules/web_shop_shopify/sale.py
--- a/modules/web_shop_shopify/sale.py Thu Oct 29 18:13:49 2026 +0100
+++ b/modules/web_shop_shopify/sale.py Thu Oct 29 18:16:51 2026 +0100
@@ -959,7 +959,7 @@
def _set_shopify_quantity(self, product, quantity):
if product.shopify_uom.category == product.sale_uom.category:
- setattr_changed(self, 'unit', self.product.shopify_uom)
+ setattr_changed(self, 'unit', product.shopify_uom)
setattr_changed(self, 'quantity', quantity)
def _set_shopify_unit_price(self, product, unit_price):