details: https://code.tryton.org/tryton/commit/71de9a39a115
branch: 8.0
user: Cédric Krier <[email protected]>
date: Tue May 05 00:11:08 2026 +0200
description:
Do not reset to quotation Shopify order already processed
After a refund the authorized payment amount may be lower than the
amount to
pay but the sale should still stay in processing or done state.
Closes #14816
(grafted from 9df991a256f872f8d9623b675732b1480534e553)
diffstat:
modules/web_shop_shopify/web.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r d9d2b9056d94 -r 71de9a39a115 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Thu May 07 18:12:20 2026 +0200
+++ b/modules/web_shop_shopify/web.py Tue May 05 00:11:08 2026 +0200
@@ -880,7 +880,8 @@
for sale in to_update:
if sale.party == sale.web_shop.guest_party:
continue
- if sale.payment_amount_authorized >= sale.amount_to_pay:
+ if (sale.payment_amount_authorized >= sale.amount_to_pay
+ or sale.state in {'processing', 'done'}):
to_process.append(sale)
else:
to_quote.append(sale)