From 7704695a41f6f24b2044c7c4bb751c6a81898cef Mon Sep 17 00:00:00 2001 From: bobrador Date: Tue, 17 Dec 2024 15:17:03 +0100 Subject: [PATCH] [FIX] account_reconcile_oca: Fixed analytic distribution update This fixes a bug that occurred when both account_reconcile_oca and account_reconcile_model_oca modules were installed. The issue arose when assigning an analytic account and making no further changes, causing the analytic account to not be set correctly. As a result, the reconciliation process failed to create the analytic entries properly. This line: ensures that if the analytic distribution has changed, it will be correctly updated. --- account_reconcile_oca/models/account_bank_statement_line.py | 1 + 1 file changed, 1 insertion(+) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index 04cebaf6f..804464db2 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -294,6 +294,7 @@ def _check_line_changed(self, line): self.manual_partner_id and self.manual_partner_id.name_get()[0] or False ) != line.get("partner_id") + or self.analytic_distribution != line.get("analytic_distribution", False) ) def _get_manual_delete_vals(self):