Skip to content

Commit

Permalink
[FIX] repair_picking: compute pickings with repair_id related
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJForgeFlow committed Aug 14, 2024
1 parent 5b95472 commit 15d7bf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions repair_picking/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def action_view_pickings(self):

def _compute_picking_ids(self):
for order in self:
moves = self.env["stock.move"].search(
[("repair_line_id", "in", order.operations.ids)]
)
moves = self.env["stock.move"].search([("repair_id", "=", order.id)])
order.picking_ids = moves.mapped("picking_id")
order.picking_count = len(moves.mapped("picking_id"))

Expand Down

0 comments on commit 15d7bf8

Please sign in to comment.