summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorGoffin Simon <simon.goffin@outlook.com>2015-02-13 13:30:53 +0100
committerGoffin Simon <sig@odoo.com>2015-02-24 14:01:34 +0100
commitcbb51610ee1506e67f5aaab703130ff8a2d824b6 (patch)
treebf7a1330c7c8dffb3e6fc61c4680dbf45a9cf15c /addons/web/static/src
parent46186f54eb92601f6187c78e87c05d8e8ec07a4a (diff)
[FIX] ir.ui.view: qweb translations: allow looking up translation in parent template
- Translations lookup normally uses the namespace of the current QWeb template, after merging all inherited views. But when a QWeb template is "cloned" by a child view using inheritance with `primary` mode, the translations are more likely to exist for the original (parent) template, and would not be found when using only the "child" namespace. This patch adds support for looking up each translation also in the parent namespace in this case, if none was found for the child template in the first place. - ir.translation's _get_source() now supports a list of res_id to search for, in addition to a single res_id - Also moved the logic of routes /website/customize_template_get and /website/get_view_translations to the ir.ui.view model where it belongs. opw: 615241 Closes #5325
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions