[IMP] mail: Chatter: allow to instantiate outside FormView
This commit is contained in:
@@ -64,7 +64,8 @@ var Chatter = Widget.extend({
|
||||
}
|
||||
if (mailFields.mail_thread) {
|
||||
this.fields.thread = new ThreadField(this, mailFields.mail_thread, record, options);
|
||||
var nodeOptions = this.record.fieldsInfo.form[mailFields.mail_thread].options;
|
||||
var fieldsInfo = this.record.fieldsInfo[record.viewType];
|
||||
var nodeOptions = fieldsInfo[mailFields.mail_thread].options || {};
|
||||
this.hasLogButton = nodeOptions.display_log_button;
|
||||
this.postRefresh = nodeOptions.post_refresh || 'never';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user