Skip to content

Commit

Permalink
Merge PR #1377 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 20, 2024
2 parents 6816600 + 943b60c commit 27e14ad
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions account_payment_partner/tests/test_account_payment_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ def setUpClass(cls):
)
if not chart:
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.env["account.chart.template"].try_loading(
"generic_coa", company=cls.company, install_demo=False
"generic_coa", company=cls.company_2, install_demo=False
)
cls.env.user.company_id = old_company.id

# refs
cls.manual_out = cls.env.ref("account.account_payment_method_manual_out")
cls.manual_out.bank_account_required = True
Expand Down

0 comments on commit 27e14ad

Please sign in to comment.