From 9380169c74aa43dcda4f6777e4ba67f45f54f17a Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Wed, 6 Sep 2017 14:24:05 +0200 Subject: [PATCH] [FIX] mail: allow identifying the chatter in creation mode Before this commit, the chatter was rendered as an empty
without any class while in creation mode. This
was then placed inside the .o_form_view_bg element by mistake, as it did not match the '.oe_chatter' selector. --- addons/mail/static/src/js/form_renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $('
'); + var $div = $('
'); + this._handleAttributes($div, node); + return $div; } else { if (!this.chatter) { this.chatter = new Chatter(this, this.state, this.mailFields, {