details: https://code.tryton.org/tryton/commit/910c981b3e19
branch: default
user: Cédric Krier <[email protected]>
date: Wed Feb 04 16:39:09 2026 +0100
description:
Fetch all non cancelled Shopify orders
Orders with only gift cards are directly archived by Shopify but we
need to
fetch them.
diffstat:
modules/web_shop_shopify/web.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r e3cb55f2d8f6 -r 910c981b3e19 modules/web_shop_shopify/web.py
--- a/modules/web_shop_shopify/web.py Fri Jan 09 18:31:28 2026 +0100
+++ b/modules/web_shop_shopify/web.py Wed Feb 04 16:39:09 2026 +0100
@@ -707,9 +707,9 @@
query = ' OR '.join(
f'id:{id}' for id in context['shopify_orders'])
elif last_order_id:
- query = f'status:open AND id:>{last_order_id}'
+ query = f'-status:cancelled AND id:>{last_order_id}'
else:
- query = 'status:open'
+ query = '-status:cancelled'
orders = shopify.GraphQL().execute(
QUERY_ORDERS % {
'query': query,