Do not try to fulfill on Shopify cancelled or closed fulfillment order
Closes #14479
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user