From cfc3e51862a1101d69fbeb652777e1b8f470ff4f Mon Sep 17 00:00:00 2001 From: bobrador Date: Mon, 16 Dec 2024 11:20:28 +0100 Subject: [PATCH] [IMP] account_reconcile_oca: Add validation for applicability of analytic plans --- account_reconcile_oca/models/account_bank_statement_line.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index a59e9c28d..621d6ca80 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -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): @@ -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)) )