[FIX] Distribute branding for all website#render() calls if editable

bzr revid: fme@openerp.com-20130807100142-uc01ncn9oca65t10
This commit is contained in:
Fabien Meghazi 2013-08-07 12:01:42 +02:00
parent 3c7c5e568d
commit 8d4efbe2a2
1 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class website(osv.osv):
return values
def render(self, template, values={}):
# context = {
# 'inherit_branding': values['editable'],
# }
return request.registry.get("ir.ui.view").render(request.cr, request.uid, template, values)
context = {
'inherit_branding': values.get('editable', False),
}
return request.registry.get("ir.ui.view").render(request.cr, request.uid, template, values, context=context)