Skip to content

Commit

Permalink
Update mrp_unbuild_subcontracting/models/stock_picking.py
Browse files Browse the repository at this point in the history
You are right, thank you

Co-authored-by: Yoshi Tashiro (Quartile) <[email protected]>
  • Loading branch information
2 people authored and PauBForgeFlow committed Jun 12, 2024
1 parent fb9c373 commit 3f30f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrp_unbuild_subcontracting/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _action_done(self):
unbuild.with_context(
subcontract_move_id=True, mo_ids_to_backorder=unbuild_ids_backorder
).action_validate()
moves = self.move_ids.filtered(lambda move: move.is_subcontract)
moves = picking.move_ids.filtered(lambda move: move.is_subcontract)
finished_move = unbuilds_to_done.produce_line_ids.filtered(
lambda m: m.product_id.id in moves.mapped("product_id").ids
)
Expand Down

0 comments on commit 3f30f19

Please sign in to comment.