[FIX] Distribute branding for all website#render() calls if editable
bzr revid: fme@openerp.com-20130807100142-uc01ncn9oca65t10
This commit is contained in:
parent
3c7c5e568d
commit
8d4efbe2a2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue