From 3621bc78f8878a88c409b8cf7f14926cb41778b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 14 Oct 2024 15:16:00 +0200 Subject: [PATCH] Use expense journal instead of expense account as payment clearing journal in scenario --- .../tests/scenario_account_payment_clearing.rst | 3 ++- ...scenario_account_payment_clearing_invoice_amount_to_pay.rst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/account_payment_clearing/tests/scenario_account_payment_clearing.rst b/modules/account_payment_clearing/tests/scenario_account_payment_clearing.rst index 76d3aafd7d..a6d4559685 100644 --- a/modules/account_payment_clearing/tests/scenario_account_payment_clearing.rst +++ b/modules/account_payment_clearing/tests/scenario_account_payment_clearing.rst @@ -61,7 +61,8 @@ Create payment journal:: >>> PaymentJournal = Model.get('account.payment.journal') >>> payment_journal = PaymentJournal(name='Manual', - ... process_method='manual', clearing_journal=expense, + ... process_method='manual', + ... clearing_journal=expense_journal, ... clearing_account=bank_clearing, ... clearing_posting_delay=dt.timedelta(1)) >>> payment_journal.save() diff --git a/modules/account_payment_clearing/tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst b/modules/account_payment_clearing/tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst index fa8a97ad7b..789c9568fb 100644 --- a/modules/account_payment_clearing/tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst +++ b/modules/account_payment_clearing/tests/scenario_account_payment_clearing_invoice_amount_to_pay.rst @@ -54,7 +54,8 @@ Create payment journal:: ... process_method='manual') >>> payment_journal.save() >>> clearing_journal = PaymentJournal(name='Clearing', - ... process_method='manual', clearing_journal=expense, + ... process_method='manual', + ... clearing_journal=expense_journal, ... clearing_account=bank_clearing) >>> clearing_journal.save()