odoo/addons/report
Denis Ledoux 22606c8905 [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
2015-02-24 17:42:25 +01:00
..
controllers [FIX] report barcode cast humanreadable 2014-12-23 00:10:57 +01:00
data [FIX] address div more to the left on external reports 2014-05-21 11:57:45 +02:00
i18n [I18N] Update translations from Launchpad 8.0 branches 2015-02-18 11:51:07 +01:00
models [FIX] report: abstract reports default lang 2015-02-24 17:42:25 +01:00
security [FIX] renamed ir.actions.report.paperformat model to report.paperformat, renamed html_skeleton to html_container in report layouts and renamed paperformat.py file to report_paperformat.py 2014-02-18 16:53:47 +01:00
static/src [FIX] report: reload record after report printed 2015-01-16 14:55:17 +01:00
tests [FIX] report explicitly import tests 2014-04-22 14:21:55 +02:00
views [REF] no more hardcoded html in report.py 2014-06-29 15:54:18 +02:00
__init__.py [IMP] report form view move inherited view, restore and refactor test case (kept commented atm) from non merged branch qweb-report 2014-03-07 01:06:20 +01:00
__openerp__.py [IMP] bundlify addons (except website) 2014-04-24 19:21:29 +02:00