details:   https://code.tryton.org/tryton/commit/1950c9a7b990
branch:    default
user:      Cédric Krier <[email protected]>
date:      Fri Jan 09 11:34:16 2026 +0100
description:
        Do not try to fulfill on Shopify cancelled or closed fulfillment order

        Closes #14479
diffstat:

 modules/web_shop_shopify/stock.py |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r b00a8cb7eef2 -r 1950c9a7b990 modules/web_shop_shopify/stock.py
--- a/modules/web_shop_shopify/stock.py Sat Jan 10 19:10:42 2026 +0100
+++ b/modules/web_shop_shopify/stock.py Fri Jan 09 11:34:16 2026 +0100
@@ -61,6 +61,7 @@
                                     },
                                 },
                             },
+                        'status': None,
                         },
                     },
                 })
@@ -202,6 +203,8 @@
         quantity = int(Uom.compute_qty(
                 self.unit, self.quantity, self.origin.unit))
         for fulfillment_order in fulfillment_orders['nodes']:
+            if fulfillment_order['status'] in {'CANCELLED', 'CLOSED'}:
+                continue
             if (fulfillment_order['assignedLocation']['location']['id']
                     != location_id):
                 continue

Reply via email to