details:   https://code.tryton.org/tryton/commit/179ccfc6acaa
branch:    7.0
user:      Cédric Krier <[email protected]>
date:      Thu Sep 25 17:32:00 2025 +0200
description:
        Always try to confirm Shopify sale after creation and update

        This is in case there is no transaction/payment to trigger the 
confirmation.

        Closes #14256
        (grafted from 92e503ff4aa6f10dbca34098c801a3f683db160e)
diffstat:

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

diffs (19 lines):

diff -r cc74516ecd87 -r 179ccfc6acaa modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py   Tue Oct 07 15:27:45 2025 +0200
+++ b/modules/web_shop_shopify/web.py   Thu Sep 25 17:32:00 2025 +0200
@@ -512,6 +512,7 @@
                 for sale, order in zip(sales, orders):
                     if sale.state != 'draft':
                         Payment.get_from_shopify(sale, order)
+                Sale.payment_confirm(sales)
 
     @classmethod
     def shopify_update_order(cls, shops=None):
@@ -610,6 +611,7 @@
                 shop = sale.web_shop
                 with shop.shopify_session():
                     Payment.get_from_shopify(sale, order)
+        Sale.payment_confirm(sales)
 
 
 class ShopShopifyIdentifier(IdentifierMixin, ModelSQL, ModelView):

Reply via email to