diff options
Diffstat (limited to 'addons/test_website/tests/test_multi_company.py')
| -rw-r--r-- | addons/test_website/tests/test_multi_company.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_website/tests/test_multi_company.py b/addons/test_website/tests/test_multi_company.py index 8c9c6859959..1395466ab47 100644 --- a/addons/test_website/tests/test_multi_company.py +++ b/addons/test_website/tests/test_multi_company.py @@ -9,7 +9,7 @@ class TestMultiCompany(HttpCase): def test_company_in_context(self): """ Test website company is set in context """ - website = self.env['website'].browse(1) + website = self.env.ref('website.default_website') company = self.env['res.company'].create({'name': "Adaa"}) website.company_id = company response = self.url_open('/multi_company_website') |
