Skip to content
Permalink
Browse files

[FIX] website: activate lang before use

Sane side effect of c7fe955 do not
blindly set written value to cache.
  • Loading branch information...
KangOl committed Apr 15, 2019
1 parent 0a09a4d commit cd4f0d4c11575ba458fda086da7c0247eb7e145a
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/website/tests/test_qweb.py
@@ -109,6 +109,7 @@ class TestQwebProcessAtt(TransactionCase):
def setUp(self):
super(TestQwebProcessAtt, self).setUp()
self.website = self.env['website'].browse(1)
self.env.ref('base.lang_fr').active = True
self.website.language_ids = self.env.ref('base.lang_en') + self.env.ref('base.lang_fr')
self.website.default_lang_id = self.env.ref('base.lang_en')
self.website.cdn_activated = True

0 comments on commit cd4f0d4

Please sign in to comment.
You can’t perform that action at this time.