diff options
| author | Simon Lejeune <sle@openerp.com> | 2014-06-27 12:00:49 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-06-27 12:00:49 +0200 |
| commit | fc8592adf2f26bf35007d6cc625fb2005cd65b5d (patch) | |
| tree | d427ba1182932c8568634c64cc30ee3dbceaded0 /addons/report/controllers/main.py | |
| parent | 195fa931685a5f32a638246160a21647ba501431 (diff) | |
[FIX] Report: translation fixed, use of 'primary clone' of web.layout and website.layout, minimal template is now a QWeb template
Diffstat (limited to 'addons/report/controllers/main.py')
| -rw-r--r-- | addons/report/controllers/main.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/report/controllers/main.py b/addons/report/controllers/main.py index c6bc13d38f8..01992d64c60 100644 --- a/addons/report/controllers/main.py +++ b/addons/report/controllers/main.py @@ -50,7 +50,12 @@ class ReportController(Controller): if data.get('options'): options_data = simplejson.loads(data['options']) if data.get('context'): - context.update(simplejson.loads(data['context'])) + # Ignore 'lang' here, because the context in data is the one from the webclient *but* if + # the user explicitely wants to change the lang, this mechanism overwrites it. + data_context = simplejson.loads(data['context']) + if data_context.get('lang'): + del data_context['lang'] + context.update(data_context) if converter == 'html': html = report_obj.get_html(cr, uid, docids, reportname, data=options_data, context=context) |
