details: https://code.tryton.org/tryton/commit/80f38dd8024d
branch: default
user: Cédric Krier <[email protected]>
date: Fri Aug 14 18:11:42 2026 +0200
description:
Call on_change_product only if the sale line has been changed
Since f41c9c208d39 the _changed_values is a method instead of a
property.
Closes #15013
diffstat:
modules/web_shop_shopify/sale.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 654923a8085d -r 80f38dd8024d modules/web_shop_shopify/sale.py
--- a/modules/web_shop_shopify/sale.py Mon Aug 17 17:32:55 2026 +0200
+++ b/modules/web_shop_shopify/sale.py Fri Aug 14 18:11:42 2026 +0200
@@ -973,7 +973,7 @@
line._set_shopify_shipping_product(sale, shipping_line)
setattr_changed(line, 'quantity', 1)
if line.product:
- if line._changed_values:
+ if line._changed_values():
line.on_change_product()
else:
setattr_changed(line, 'taxes', ())
@@ -1000,7 +1000,7 @@
line.product = None
line._set_shopify_refund_product(sale)
setattr_changed(line, 'quantity', -1)
- if line._changed_values:
+ if line._changed_values():
line.on_change_product()
unit_price = round_price(Tax.reverse_compute(
amount, line.taxes, sale.sale_date))