[FIX] account_financial_report: Fix tests

On multi-company settings, we need to make sure we are searching and creating objects with the correct company associated.
Also take into account previously created account groups

 TT28423
This commit is contained in:
João Marques
2021-02-25 13:13:53 +00:00
committed by chaule97
parent 12034178bb
commit 2e232d9a90
5 changed files with 66 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ from odoo.tests.common import TransactionCase
class TestOpenItems(TransactionCase):
def test_partner_filter(self):
self.env.user.company_id = self.env.ref("base.main_company").id
partner_1 = self.env.ref("base.res_partner_1")
partner_2 = self.env.ref("base.res_partner_2")
partner_3 = self.env.ref("base.res_partner_3")