summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-18 16:20:26 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-18 16:21:42 +0100
commit0167acbb527b83700045274ad3a37348f657abf7 (patch)
tree5b93fc5f9e49fdfd65834df425a36bf02c826dd4 /addons/analytic_user_function/analytic_user_function_view.xml
parent184ed718a3a9363f1b879362844af327cc5b958b (diff)
[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
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions