[FIX] test_converter: force inherit_branding by passing the right context

bzr revid: chs@openerp.com-20140317170706-dkig0e31xtnrsskj
This commit is contained in:
Christophe Simonis 2014-03-17 18:07:06 +01:00
parent 5196cd6e8c
commit 7887085631
1 changed files with 4 additions and 1 deletions

View File

@ -112,11 +112,14 @@ class TestCurrencyExport(TestExport):
'widget': 'monetary',
'display_currency': 'c2'
}
context = dict(inherit_branding=True)
converted = converter.to_html(
self.cr, self.uid, 'value', obj, options,
doc.createElement('span'),
{'field': 'obj.value', 'field-options': json.dumps(options)},
'', ir_qweb.QWebContext(self.cr, self.uid, {'obj': obj, 'c2': dest, }))
'', ir_qweb.QWebContext(self.cr, self.uid, {'obj': obj, 'c2': dest, }),
context=context,
)
return converted
def test_currency_post(self):