summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.contentMenu.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-07-19 16:37:35 +0200
committerqsm-odoo <qsm@odoo.com>2016-07-19 17:02:02 +0200
commit7aa9f2395529e0f91aff6923da577b4087309d63 (patch)
tree273323d5e71518d4a0fa6e50dbaa4fcd17f67b27 /addons/website/static/src/js/website.contentMenu.js
parent946b9415cdfe562185d2f375141963c5e92090aa (diff)
[FIX] *: use html_translate for non-sanitized html fields
Commit c21568e14f2dd9a9b859ac495a649828355bc75f deactivated the sanitization of frontend html fields so that their modification through the editor worked again. However, this broke the possibility to display their traduction and to modify them. The problem is that the translate option of html fields should not equal "True" but instead be the html_translate function defined in openerp.tool.translate. The translate=True option is automatically change in html_translate though but there is a condition: the field should be sanitized, which is why this broke since the sanitization is disabled. This commit sets the translate option of non-sanitized html fields to html_translate. Maybe we should investigate for this to be automatic for non-sanitized html fields as well. Thanks to @rco-odoo.
Diffstat (limited to 'addons/website/static/src/js/website.contentMenu.js')
0 files changed, 0 insertions, 0 deletions