Do not prevent to pack customer shipment with cancelled inventory moves

This commit is contained in:
Cédric Krier
2023-08-23 18:18:20 +02:00
parent 914d87ff78
commit 742725d333
+1 -1
View File
@@ -1565,7 +1565,7 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
Move = pool.get('stock.move')
for shipment in shipments:
for move in shipment.inventory_moves:
if move.state != 'done':
if move.state not in {'done', 'cancelled'}:
raise AccessError(
gettext('stock.msg_shipment_pack_inventory_done',
shipment=shipment.rec_name))