diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-09-06 14:24:05 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-09-06 17:52:24 +0200 |
| commit | 9380169c74aa43dcda4f6777e4ba67f45f54f17a (patch) | |
| tree | 02d90ecf404e9ff3bd7f6db1078f7fcc31cbcc69 | |
| parent | cf4f357647a9bf84da07e599c78f8f06b10b3a1c (diff) | |
[FIX] mail: allow identifying the chatter in creation mode
Before this commit, the chatter was rendered as an empty <div/> without
any class while in creation mode. This <div/> was then placed inside
the .o_form_view_bg element by mistake, as it did not match the
'.oe_chatter' selector.
| -rw-r--r-- | addons/mail/static/src/js/form_renderer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/form_renderer.js b/addons/mail/static/src/js/form_renderer.js index 520827d7695..bc77fc5acab 100644 --- a/addons/mail/static/src/js/form_renderer.js +++ b/addons/mail/static/src/js/form_renderer.js @@ -53,7 +53,9 @@ FormRenderer.include({ if (node.tag === 'div' && node.attrs.class === 'oe_chatter') { if (this.mode === 'edit' && !this.state.data.id) { // there is no chatter in create mode - return $('<div>'); + var $div = $('<div>'); + this._handleAttributes($div, node); + return $div; } else { if (!this.chatter) { this.chatter = new Chatter(this, this.state, this.mailFields, { |
