From f68d2fefade013e0400f822bb9cc857dc8a47b95 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 8 Nov 2024 21:11:12 +0100 Subject: [PATCH] FIX eurofactor: switch account --- .../models/subrogation_receipt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py b/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py index dd0596d..022b515 100644 --- a/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py +++ b/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py @@ -28,7 +28,7 @@ def _prepare_journal_entry_vals_list(self): Command.create( { "date": fields.date.today(), - "account_id": fact_journal.factoring_holdback_account_id.id, + "account_id": fact_journal.factoring_current_account_id.id, "name": x.name, "debit": x.credit, "credit": x.debit, @@ -39,7 +39,7 @@ def _prepare_journal_entry_vals_list(self): name = f"{self.display_name} N° {self.id}" line = { "date": fields.date.today(), - "account_id": fact_journal.factoring_current_account_id.id, + "account_id": fact_journal.factoring_holdback_account_id.id, "name": f"total {name}", "debit": sum(self.line_ids.mapped("debit")), "credit": sum(self.line_ids.mapped("credit")),