mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Fix tests after change in dependencies
This commit is contained in:
committed by
Guewen Baconnier
parent
de4dcfd141
commit
ac9a2414dd
@@ -52,7 +52,9 @@ class StockPicking(models.Model):
|
||||
depending_moves = picking.move_lines.mapped("common_dest_move_ids")
|
||||
# If all the depending moves are done or canceled then next picking
|
||||
# is ready to be processed
|
||||
if all(m.state in ("done", "cancel") for m in depending_moves):
|
||||
if picking.state == "done" and all(
|
||||
m.state in ("done", "cancel") for m in depending_moves
|
||||
):
|
||||
picking.completion_info = "next_picking_ready"
|
||||
continue
|
||||
# If all the depending moves are the moves on the actual picking
|
||||
|
||||
Reference in New Issue
Block a user