Skip to content

Commit

Permalink
[FIX] account_reconcile_analytic_tag: Avoid error when accessing the …
Browse files Browse the repository at this point in the history
…reconciliation view

Steps to reproduce the error:
- Go to Accounting Dashboard
- Click on the Reconcile X items button of the bank journal
  • Loading branch information
victoralmau committed Dec 17, 2024
1 parent ba61324 commit 3faa6e3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def _get_write_off_move_lines_dict(self, residual_balance, partner_id):
if len(res) == 0:
return res
currency = self.company_id.currency_id
for index, line in enumerate(self.line_ids):
index = 0
for line in self.line_ids:
if line.amount_type == "percentage":
balance = currency.round(residual_balance * (line.amount / 100.0))
elif line.amount_type == "fixed":
Expand All @@ -28,6 +29,7 @@ def _get_write_off_move_lines_dict(self, residual_balance, partner_id):
continue

res[index]["manual_analytic_tag_ids"] = [(6, 0, line.analytic_tag_ids.ids)]
index += 1
return res


Expand Down

0 comments on commit 3faa6e3

Please sign in to comment.