summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-06-13 18:37:36 -0700
committerJoren Van Onder <jov@odoo.com>2017-06-15 21:29:26 -0700
commit83f1e28cc9ca8d115ce3ae64a4538112788b85ce (patch)
tree7e737966aacc6ffa0cc768da25192363f1078fd9 /addons/web_editor/static/src
parentb41a9877679130bb94fb0e53b153106b3cec4bb9 (diff)
[FIX] web_editor,mass_mailing: adapt d7939282 to new views
Also adds body_html to the blacklisted fields. Because that tends to be quite long as well.
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/backend.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/backend.js b/addons/web_editor/static/src/js/backend.js
index c12ab41b4bb..11584efe384 100644
--- a/addons/web_editor/static/src/js/backend.js
+++ b/addons/web_editor/static/src/js/backend.js
@@ -236,10 +236,13 @@ var FieldTextHtml = AbstractField.extend({
// this.$translate = $();
return def;
},
+ getDatarecord: function () {
+ return this.recordData;
+ },
get_url: function (_attr) {
var src = this.nodeOptions.editor_url || "/mass_mailing/field/email_template";
var k;
- var datarecord = this.recordData;
+ var datarecord = this.getDatarecord();
var attr = {
'model': this.model,
'field': this.name,