summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/form_renderer.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/form_renderer.js')
-rw-r--r--addons/mail/static/src/js/form_renderer.js4
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, {