Skip to content

Commit

Permalink
[IMP] account_reconcile_oca: Add validation for applicability of anal…
Browse files Browse the repository at this point in the history
…ytic plans
  • Loading branch information
BernatObrador committed Dec 16, 2024
1 parent 59f3a4b commit cfc3e51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def _check_line_changed(self, line):
or self.manual_name != line["name"]
or (self.manual_partner_id and self.manual_partner_id.display_name or False)
!= line.get("partner_id")
or self.analytic_distribution != line.get("analytic_distribution", False)
)

def _get_manual_delete_vals(self):
Expand Down Expand Up @@ -610,6 +611,7 @@ def _reconcile_bank_line_edit(self, data):
check_move_validity=False,
skip_sync_invoice=True,
skip_invoice_sync=True,
validate_analytic=True,
)
.create(self._reconcile_move_line_vals(line_vals))
)
Expand Down

0 comments on commit cfc3e51

Please sign in to comment.