details:   https://code.tryton.org/tryton/commit/b72c7415bbab
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Thu Aug 06 10:52:54 2026 +0200
description:
        Set Shopify warehouse on sale line only if it has changed

        Closes #14995
        (grafted from 2c1a865682ab07758f4b9319f47cfc2b51df1a83)
diffstat:

 modules/web_shop_shopify/sale.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3a3ea4372c76 -r b72c7415bbab modules/web_shop_shopify/sale.py
--- a/modules/web_shop_shopify/sale.py  Wed Aug 05 17:39:38 2026 +0200
+++ b/modules/web_shop_shopify/sale.py  Thu Aug 06 10:52:54 2026 +0200
@@ -889,7 +889,7 @@
             line.sale = sale
             line.shopify_identifier = gid2id(line_item['id'])
             line.product = None
-        line.shopify_warehouse = warehouse
+        setattr_changed(line, 'shopify_warehouse', warehouse)
         assert line.shopify_identifier == gid2id(line_item['id'])
         if line_item['variant'] and line_item['variant']['id']:
             if product := Product.search_shopify_identifier(

Reply via email to