diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-06-21 18:28:26 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-06-21 18:28:26 +0200 |
| commit | 6981320d017db77fc1c78cc4c522b9e31f46baad (patch) | |
| tree | 55b8851658e482e14dd85cc8dcb487859c2039d1 /addons/web_editor/static/src/js/backend.js | |
| parent | b21f6e36ce1336c7a95401d4ba7f80689275d100 (diff) | |
| parent | 79dfcde359a077772ff00658455e1a0213ddf9d0 (diff) | |
[MERGE] forward port branch saas-11 up to 79dfcde359a
Diffstat (limited to 'addons/web_editor/static/src/js/backend.js')
| -rw-r--r-- | addons/web_editor/static/src/js/backend.js | 5 |
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 1c6f069ae3c..7d22186c0a8 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; }); |
