[FIX] website: set inherit_branding in test contexts to trigger generation of relevant edition attributes

bzr revid: xmo@openerp.com-20140317152502-6a2agi1xjooi516e
This commit is contained in:
Xavier Morel 2014-03-17 16:25:02 +01:00
parent 4988b40ef5
commit 5196cd6e8c
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class TestConvertBack(common.TransactionCase):
rendered = self.registry('website.qweb').render_tag_field(
e, {'field': field_value}, '', ir_qweb.QWebContext(self.cr, self.uid, {
'record': record,
}))
}, context={'inherit_branding': True}))
element = html.fromstring(
rendered, parser=html.HTMLParser(encoding='utf-8'))
@ -216,7 +216,7 @@ class TestConvertBack(common.TransactionCase):
rendered = self.registry('website.qweb').render_tag_field(
e, {'field': field_value}, '', ir_qweb.QWebContext(self.cr, self.uid, {
'record': record,
}))
}, context={'inherit_branding': True}))
element = html.fromstring(rendered, parser=html.HTMLParser(encoding='utf-8'))
# emulate edition