From 248dbc45f281bf276460b4a13784cac388f32c28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 4 Feb 2026 16:39:09 +0100 Subject: [PATCH] Fetch all non cancelled Shopify orders Orders with only gift cards are directly archived by Shopify but we need to fetch them. --- modules/web_shop_shopify/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web_shop_shopify/web.py b/modules/web_shop_shopify/web.py index afa52c3533..0b77f9a345 100644 --- a/modules/web_shop_shopify/web.py +++ b/modules/web_shop_shopify/web.py @@ -707,9 +707,9 @@ class Shop(metaclass=PoolMeta): 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,