details: https://code.tryton.org/tryton/commit/bcae1542f103
branch: 7.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 3746bba56dea -r bcae1542f103 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Wed Feb 12 18:59:33 2025 +0100
+++ b/modules/web_shop_shopify/web.py Tue May 05 00:11:08 2026 +0200
@@ -595,7 +595,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)