details: https://code.tryton.org/tryton/commit/1c77abb41b2d
branch: 7.4
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 3659d4721db5 -r 1c77abb41b2d 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)
@classmethod
def write(cls, *args):