summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function.py
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-24 17:33:35 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-24 17:42:25 +0100
commit22606c89057cb70ecf8f379144092319bc7275e2 (patch)
treefc9234ba61ab29fc0106259e60945f637fceb473 /addons/analytic_user_function/analytic_user_function.py
parentcbb51610ee1506e67f5aaab703130ff8a2d824b6 (diff)
[FIX] report: abstract reports default lang
In ir_ui_view.py, in method render (line 132 atm), the values passed to the rendering engine is a merge of the context and the values. Therefore, if at this place, the language is rightly set in the context, the report lang will be as well in the values. In abstract_report.py, the values passed to the render method is the wrapped report localcontext in which are added some key/values (docs, doc_ids, doc_model). By default, the lang in the localcontext is False See __init__ method of rml_parse class in report_sxw.py. If setLang method is not called, the lang in the localcontext remains False. In this rev., we avoid to overwrite the lang from the context by the lang of the localcontext if this one is False, so the lang of the report is set with the current context lang. Forcing the lang of the report to False had as side-effect to prevent the editing of report using the website editor(e.g. playslip_report) opw-628720
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions