summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorDarshan Kalola <dka@odoo.com>2017-06-14 18:26:29 +0530
committerAaron Bohy <aab@odoo.com>2017-06-28 12:41:35 +0200
commit7ada921e67c77e0a9f9ad83f1f685e51c364171d (patch)
tree9cf3165debbfcf3865a4607c81c249e76c01f6ca /addons/web/static/src/js/fields
parent9f4922a85236e858d8787adf3b891a7b66fa1d63 (diff)
[FIX] web_editor: make html widget translatable
The translate feature of widgets html and html_frame had been broken by the new views refactoring. This commit restores it for the html widget, and removes it completely for html_frame as it wasn't working correctly before the new views anyway (moreover, it had already been disabled for mass_mailing: de403dc1ab440b9b08ea7fce189cd157745dfe74). This commit also ensures that the changes are correctly saved for the html_frame widget. Note that this widget still needs to be converted to our new coding guidelines.
Diffstat (limited to 'addons/web/static/src/js/fields')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index f6e463c6da4..575fe1875e3 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -2234,6 +2234,7 @@ var AceEditor = DebouncedField.extend({
});
return {
+ TranslatableFieldMixin: TranslatableFieldMixin,
DebouncedField: DebouncedField,
FieldEmail: FieldEmail,
FieldBinaryFile: FieldBinaryFile,