From a22ce6c50e4ecb26f395c14e43c3961473ab218b Mon Sep 17 00:00:00 2001 From: Damien Crier Date: Wed, 22 Jan 2025 14:09:23 +0100 Subject: [PATCH] fix --- .../test_template_mail_attach_existing_attachment_account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_template_attach_existing_attachment_account/tests/test_template_mail_attach_existing_attachment_account.py b/mail_template_attach_existing_attachment_account/tests/test_template_mail_attach_existing_attachment_account.py index 5815e71e86..85b509c2da 100644 --- a/mail_template_attach_existing_attachment_account/tests/test_template_mail_attach_existing_attachment_account.py +++ b/mail_template_attach_existing_attachment_account/tests/test_template_mail_attach_existing_attachment_account.py @@ -9,10 +9,10 @@ class TestTemplateAttachExistingAttachment(TransactionCase, MockEmail): @classmethod def _create_invoice(cls): - account_type = cls.env.ref("account.data_account_type_other_income") + #account_type = cls.env.ref("account.data_account_type_other_income") income_account = cls.env["account.account"].search( [ - ("user_type_id", "=", account_type.id), + ("account_type", "=", "income_other"), ("company_id", "=", cls.env.company.id), ], limit=1,