From bb94cbc56bca510597db7666d5878e4516a15a44 Mon Sep 17 00:00:00 2001 From: Emanuel Cino Date: Thu, 29 Feb 2024 15:47:13 +0100 Subject: [PATCH] Various bug fixes --- account_reconcile_compassion/models/bank_statement_line.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_reconcile_compassion/models/bank_statement_line.py b/account_reconcile_compassion/models/bank_statement_line.py index f777b4261..4a2253f64 100644 --- a/account_reconcile_compassion/models/bank_statement_line.py +++ b/account_reconcile_compassion/models/bank_statement_line.py @@ -227,7 +227,7 @@ def _get_invoice_line_data(self, mv_line_dict): # it is only useful in the invoice journal item analytic = mv_line_dict.pop("analytic_account_id", False) if analytic: - invl_vals["account_analytic_id"] = analytic + invl_vals["analytic_account_id"] = analytic # Find sponsorship sponsorship_id = mv_line_dict.pop("sponsorship_id") @@ -243,9 +243,9 @@ def _get_invoice_line_data(self, mv_line_dict): default_analytic = self.env["account.analytic.default"].account_get( product.id, self.partner_id.id ) - analytic = invl_vals.get("account_analytic_id") + analytic = invl_vals.get("analytic_account_id") if not analytic and default_analytic: - invl_vals["account_analytic_id"] = default_analytic.analytic_id.id + invl_vals["analytic_account_id"] = default_analytic.analytic_id.id return invl_vals