details:   https://code.tryton.org/tryton/commit/df818def97f8
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Mar 26 10:58:16 2026 +0100
description:
        Log the update of sales from Shopify

        Closes #14711
diffstat:

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

diffs (21 lines):

diff -r 836f1e24ada9 -r df818def97f8 modules/web_shop_shopify/CHANGELOG
--- a/modules/web_shop_shopify/CHANGELOG        Thu Mar 26 10:56:59 2026 +0100
+++ b/modules/web_shop_shopify/CHANGELOG        Thu Mar 26 10:58:16 2026 +0100
@@ -1,3 +1,4 @@
+* Log the update of sales
 * Add support for gift card products
 * Add support for Python 3.14
 * Remove support for Python 3.9
diff -r 836f1e24ada9 -r df818def97f8 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Thu Mar 26 10:56:59 2026 +0100
+++ b/modules/web_shop_shopify/web.py   Thu Mar 26 10:58:16 2026 +0100
@@ -812,7 +812,8 @@
                     to_update[sale] = order
                     states_to_restore[sale.state].append(sale)
         Sale.write(list(to_update.keys()), {'state': 'draft'})
-        Sale.save(to_update.keys())
+        with Transaction().set_context(_log=True):
+            Sale.save(to_update.keys())
         for state, state_sales in states_to_restore.items():
             Sale.write(list(state_sales), {'state': state})
         for sale, order in to_update.items():

Reply via email to