Skip to content

Commit

Permalink
Merge PR #1376 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 19, 2024
2 parents f691d0e + 14ad517 commit 47bbac7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions account_payment_partner/tests/test_account_payment_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 47bbac7

Please sign in to comment.