Skip to content

Commit

Permalink
[FIX] do not check inspection created
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocorato committed Oct 18, 2024
1 parent 08d7455 commit 17a8a77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _action_done(self):
inspection = inspection_model._make_inspection(
operation, trigger_line
)
if inspection and inspection not in picking.qc_inspections_ids:
if inspection:
# force save of the new inspection, otherwise it will be deleted
inspection.env.cr.commit()
for inspection in picking.qc_inspections_ids:
Expand Down

0 comments on commit 17a8a77

Please sign in to comment.