summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-02-20 17:12:34 +0100
committerDenis Ledoux <dle@odoo.com>2015-02-20 17:22:39 +0100
commit2e7347dba5f3bd09deb28a8c91a11d65d13bdd14 (patch)
treeac1db62f317a32f99ebd690dd3e60dfc9fffae23 /addons/web/static/src/js/views.js
parentd5c4a1c3e13ba90d0ef51e3d7e93094e573c32f2 (diff)
[FIX] translate: possibility to disable translation of view nodes
Node content of inherited views using <attribute> tags are added in the translation terms when syncing the terms. The fact that the content should be translated or not depends on the content, or to which attribute it refers. For instance, string attributes should be translated, but domains probably not. But, even for domains, this is possible that it requires a translation e.g. [('category_id.name', 'ilike', 'Customers')]. This domain is very unlikely to be integrated in the standard source code, but this is possible to have such a domain in a view customization. Therefore, we provide the possibility to disable the translation case by case. Setting translation="off" in the attribute of the node will prevent to add the node content in the translated terms. opw-625762
Diffstat (limited to 'addons/web/static/src/js/views.js')
0 files changed, 0 insertions, 0 deletions