summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-06-21 18:06:45 +0200
committerChristophe Simonis <chs@odoo.com>2017-06-21 18:06:45 +0200
commit79dfcde359a077772ff00658455e1a0213ddf9d0 (patch)
treefd38e11ae02e917dabedd759cec074de4b7c2a7f /addons/web_editor/static/src
parent7f273f1fe1abc33a39c7cfc4ba9e6ddf51502908 (diff)
parent26627391870af2edd8315748929122392a9a5f68 (diff)
[MERGE] forward port branch 9.0 up to 26627391870
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/backend.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js
index 7ed4dd24f10..2b6e8954cf8 100644
--- a/addons/web_editor/static/src/js/backend.js
+++ b/addons/web_editor/static/src/js/backend.js
@@ -183,6 +183,11 @@ var FieldTextHtml = widget.extend({
template: 'web_editor.FieldTextHtml',
willStart: function () {
var self = this;
+
+ if (this.field.translate === false) {
+ this.languages = [];
+ return $.when();
+ }
return new Model('res.lang').call("search_read", [[['code', '!=', 'en_US']], ["name", "code"]]).then(function (res) {
self.languages = res;
});