details: https://code.tryton.org/tryton/commit/745ba7213d50
branch: 7.8
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
(grafted from f82f561062e631ff5d88eee60f576acdc743a871)
diffstat:
modules/web_shop_shopify/sale.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 847bb2df3114 -r 745ba7213d50 modules/web_shop_shopify/sale.py
--- a/modules/web_shop_shopify/sale.py Wed Oct 28 18:08:00 2026 +0100
+++ b/modules/web_shop_shopify/sale.py Thu Oct 29 18:16:51 2026 +0100
@@ -923,7 +923,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):