Do not try to fulfill on Shopify cancelled or closed fulfillment order

Closes #14479
This commit is contained in:
Cédric Krier
2026-01-09 11:34:16 +01:00
parent f3f3dc5f96
commit 72492c3952
+3
View File
@@ -61,6 +61,7 @@ class ShipmentOut(metaclass=PoolMeta):
},
},
},
'status': None,
},
},
})
@@ -202,6 +203,8 @@ class Move(metaclass=PoolMeta):
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