Skip to content

Commit

Permalink
Fix pre-commit warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Castro Silva authored Feb 27, 2023
1 parent c9190bd commit 1941fbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions account_invoice_refund_link/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ def _reverse_moves(self, default_values_list=None, cancel=False):
refund_lines = move.line_ids.filtered(
lambda x: x.display_type == "product"
)
for i, line in enumerate(self.invoice_line_ids.filtered(
lambda x: x.display_type == "product")):
for i, line in enumerate(
self.invoice_line_ids.filtered(
lambda x: x.display_type == "product"
)
):
if i < len(refund_lines):
refund_lines[i].origin_line_id = line.id
return reverse_moves

0 comments on commit 1941fbb

Please sign in to comment.