From 40a0e6436c262b59e276c2ab0522b41fc1c9e4a1 Mon Sep 17 00:00:00 2001 From: PNurm <65661625+PNurm@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:21:52 +0300 Subject: [PATCH] [FIX] account_reconcile_oca: Pass partner parameter correctly to _get_write_off_move_lines_dict --- account_reconcile_oca/models/account_bank_statement_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index ddf8a8dcaf..2395b195c5 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -412,8 +412,9 @@ def _reconcile_data_by_model(self, data, reconcile_model, reconcile_auxiliary_id continue new_data.append(line_data) liquidity_amount += line_data["amount"] + for line in reconcile_model._get_write_off_move_lines_dict( - -liquidity_amount, self._retrieve_partner() + -liquidity_amount, self._retrieve_partner().id ): new_line = line.copy() amount = line.get("balance")