Skip to content

Commit

Permalink
[FIX] stock_barcodes: Crash if user defines an option to scan with a …
Browse files Browse the repository at this point in the history
…field which not exists
  • Loading branch information
sergio-teruel committed Aug 1, 2024
1 parent 023f994 commit 8c5d442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_barcodes/wizard/stock_barcodes_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def action_create_package(self):

def action_clean_values(self):
options = self.option_group_id.option_ids
options_to_clean = options.filtered("clean_after_done")
options_to_clean = options.filtered(lambda op: op.clean_after_done and op.field_name in self)
for option in options_to_clean:
if option.field_name == "result_package_id" and self.keep_result_package:
continue
Expand Down

0 comments on commit 8c5d442

Please sign in to comment.