[FIX] test_converter: force inherit_branding by passing the right context
bzr revid: chs@openerp.com-20140317170706-dkig0e31xtnrsskj
This commit is contained in:
parent
5196cd6e8c
commit
7887085631
|
@ -112,11 +112,14 @@ class TestCurrencyExport(TestExport):
|
||||||
'widget': 'monetary',
|
'widget': 'monetary',
|
||||||
'display_currency': 'c2'
|
'display_currency': 'c2'
|
||||||
}
|
}
|
||||||
|
context = dict(inherit_branding=True)
|
||||||
converted = converter.to_html(
|
converted = converter.to_html(
|
||||||
self.cr, self.uid, 'value', obj, options,
|
self.cr, self.uid, 'value', obj, options,
|
||||||
doc.createElement('span'),
|
doc.createElement('span'),
|
||||||
{'field': 'obj.value', 'field-options': json.dumps(options)},
|
{'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
|
return converted
|
||||||
|
|
||||||
def test_currency_post(self):
|
def test_currency_post(self):
|
||||||
|
|
Loading…
Reference in New Issue