[FIX] don't store current context lang in action when creating ir.ui.view.custom for custom dashboards

bzr revid: xmo@openerp.com-20120831113418-7qnduqg89fqs3jds
This commit is contained in:
Xavier Morel
2012-08-31 13:34:18 +02:00
+2 -1
View File
@@ -1339,7 +1339,8 @@ class SearchView(View):
to_eval = common.nonliterals.CompoundContext(context_to_save)
to_eval.session = req.session
ctx = dict((k, v) for k, v in to_eval.evaluate().iteritems()
if not k.startswith('search_default_'))
if not k.startswith('search_default_')
if k != 'lang')
ctx['dashboard_merge_domains_contexts'] = False # TODO: replace this 6.1 workaround by attribute on <action/>
domain = common.nonliterals.CompoundDomain(domain)
domain.session = req.session