odoo/addons/website_report
Denis Ledoux 0167acbb52 [FIX] report : translation of report using website editor
In the website editor, the translations are loaded using
the route 'get_view_translations', which returns the translations
of the templates loaded by the website (t-call calls)

The thing is, report templates use the 'translate_doc' method
to actually load the report, translated in the partner language,
and the templates loaded by this method are not seen by the website,
therefore, when calling 'get_view_translations', those report
templates were just ignored, thus their translations are not loaded.

This rev. injects the templates loaded with translate_doc
when rendering the report into the method 'customize_template_get'
(which is used by 'get_view_translations' to retrieve the loaded templates).

The translations of the reports are therefore now loaded corretly when
hitting the "translate" button in the website editor for reports.

Besides, this rev. has as (good) side-effect to add the template,
in the template selection input when editing using the HTML editor.

opw-620713
2015-02-18 16:21:42 +01:00
..
controllers [FIX] report : translation of report using website editor 2015-02-18 16:21:42 +01:00
i18n [I18N] Update translations from Launchpad 8.0 branches 2015-01-26 16:36:51 +01:00
views [FIX] Report: translation fixed, use of 'primary clone' of web.layout and website.layout, minimal template is now a QWeb template 2014-06-27 12:00:49 +02:00
__init__.py [FIX] report : translation of report using website editor 2015-02-18 16:21:42 +01:00
__openerp__.py [IMP] Independance from the website module: moved the editor into a 'website_report' module 2014-02-19 11:53:27 +01:00
report.py [FIX] report : translation of report using website editor 2015-02-18 16:21:42 +01:00