Skip to content

Commit f43d026

Browse files
[FIX] repair_stock_consumption_step: fix cache miss in case of multiple repair line for same product
1 parent 579803c commit f43d026

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

repair_stock_consumption_step/models/repair_order.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def action_repair_done(self):
5656

5757
moves.move_line_ids.unlink()
5858
moves._action_confirm()
59-
moves._action_assign()
59+
# need exists because confirm() may merge moves
60+
moves.exists()._action_assign()
6061

6162
# Reset lot_id on the new move lines
6263
for move in moves:

0 commit comments

Comments
 (0)