[FIX] Language in context for qweb translations

bzr revid: fme@openerp.com-20130925114457-ct5v0gefg6gd6ua8
This commit is contained in:
Fabien Meghazi 2013-09-25 13:44:57 +02:00
parent 172ca5f213
commit e64c07f049
1 changed files with 4 additions and 3 deletions

View File

@ -138,9 +138,10 @@ class website(osv.osv):
user_id=user.browse(cr, openerp.SUPERUSER_ID, uid),
)
context = {
'inherit_branding': qweb_context.setdefault('editable', False),
}
context = request.context.copy()
context.update(
inherit_branding=qweb_context.setdefault('editable', False),
)
# check if xmlid of the template exists
try: