From 48158ce2d89a0098847cec06a098948d48adc471 Mon Sep 17 00:00:00 2001 From: "Claire Bretton (clbr)" Date: Thu, 8 Jun 2023 08:27:35 +0000 Subject: [PATCH] [FIX] account: fix account not defined in common tests Fix a reference to an account that is not defined in Common tests of accounting. closes odoo/odoo#125345 X-original-commit: 13c97c3272be237381d1680116424a46e5e7cb03 Related: odoo/enterprise#42677 Signed-off-by: Laurent Smet Signed-off-by: Claire Bretton (clbr) --- addons/account/tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/tests/common.py b/addons/account/tests/common.py index 0cd1d40651a..815d25feb62 100644 --- a/addons/account/tests/common.py +++ b/addons/account/tests/common.py @@ -443,7 +443,7 @@ class AccountTestInvoicingCommon(TransactionCase): 'debit': -balance if balance < 0.0 else 0.0, 'credit': balance if balance > 0.0 else 0.0, 'amount_currency': -amount_currency, - 'account_id': self.revenue_account.id, + 'account_id': self.company_data['default_account_revenue'].id, 'currency_id': currency.id, 'partner_id': partner.id if partner else None, }),