mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_partner: Fix tests
Add company permissions to the admin user to be able to create the demo data
This commit is contained in:
committed by
Thomas Binsfeld
parent
96c5f6bfca
commit
7c98ab268e
@@ -34,6 +34,7 @@ class TestAccountPaymentPartner(TransactionCase):
|
||||
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.ref("base.user_admin").company_ids = [(4, cls.company_2.id)]
|
||||
cls.chart.try_loading()
|
||||
cls.env.user.company_id = old_company.id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user