Skip to content

Commit

Permalink
[FIX] website: remove lang from context for modifying view arch
Browse files Browse the repository at this point in the history
  • Loading branch information
rco-odoo committed Sep 30, 2015
1 parent 22c2522 commit aa77282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/models/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def new_page(self, cr, uid, name, template='website.default_page', ispage=True,
website_id = context.get('website_id')
key = template_module+'.'+page_name
page_id = view.copy(cr, uid, template_id, {'website_id': website_id, 'key': key}, context=context)
page = view.browse(cr, uid, page_id, context=context)
page = view.browse(cr, uid, page_id, context=dict(context, lang=None))
page.write({
'arch': page.arch.replace(template, page_xmlid),
'name': page_name,
Expand Down

0 comments on commit aa77282

Please sign in to comment.