diff --git a/account_payment_partner/tests/test_account_payment_partner.py b/account_payment_partner/tests/test_account_payment_partner.py index ec8dcf20d3d..171bd8938bf 100644 --- a/account_payment_partner/tests/test_account_payment_partner.py +++ b/account_payment_partner/tests/test_account_payment_partner.py @@ -31,11 +31,9 @@ def setUpClass(cls): cls.chart = charts[0] else: raise ValidationError(_("No Chart of Account Template has been defined !")) - old_company = cls.env.user.company_id - cls.env.user.company_id = cls.company_2.id + cls.env.user.company_ids = [(4, cls.company_2.id)] cls.env.ref("base.user_admin").company_ids = [(4, cls.company_2.id)] - cls.chart.try_loading() - cls.env.user.company_id = old_company.id + cls.chart.try_loading(cls.company_2) # refs cls.manual_out = cls.env.ref("account.account_payment_method_manual_out")