diff options
| author | ryv-odoo <ryv@odoo.com> | 2019-10-01 10:58:39 +0000 |
|---|---|---|
| committer | ryv-odoo <ryv@odoo.com> | 2019-10-01 11:04:10 +0000 |
| commit | a7489feed09c9fe69e2712bfe17b4f45933c71b4 (patch) | |
| tree | 289f03b772c1fe0505f0131b9c8e275b05e097e2 /addons/mass_mailing/static | |
| parent | 43a880eb6c46ae7fa71df1032bf449530821ed37 (diff) | |
[FIX] mass_mailing: mail template become invisible after saving
Bug
===
In the mailing mailing form view, after saving the email and creating it, the body is invisible and one needs to edit and save again to see the content
The view has two fields with the same name
Fix
===
At the end, we have only one field and some condition on the attributes (class, widget)
TASK_ID : 2078918
Co-authored-by: Stéphane Debauche <std@odoo.com>
Diffstat (limited to 'addons/mass_mailing/static')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_widget.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_widget.js b/addons/mass_mailing/static/src/js/mass_mailing_widget.js index d0c16fa4a36..acd2c6dacc1 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_widget.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_widget.js @@ -137,6 +137,13 @@ var MassMailingFieldHtml = FieldHtml.extend({ } return this._super.apply(this, arguments); }, + /** + * @override + */ + _renderReadonly: function () { + this.value = this.recordData[this.nodeOptions['inline-field']]; + return this._super.apply(this, arguments); + }, /** * @override |
