[IMP] Thread widget: reply textarea shown by default when viewing a record.

bzr revid: tde@openerp.com-20120313170648-5uln1ozxvhv8yfxx
This commit is contained in:
Thibault Delavallée
2012-03-13 18:06:48 +01:00
parent 516ba422a4
commit 5dbd526a19
+2 -2
View File
@@ -54,7 +54,7 @@ openerp.mail = function(session) {
this.sorted_comments = {'root_ids': [], 'root_id_msg_list': {}};
/* Display vars */
this.display = {};
this.display.show_post_comment = false;
this.display.show_post_comment = this.params.show_post_comment || false;
this.display.show_reply = (this.params.thread_level > 0);
this.display.show_delete = true;
this.display.show_hide = true;
@@ -406,7 +406,7 @@ openerp.mail = function(session) {
/* create ThreadDisplay widget and render it */
this.$element.find('div.oe_mail_recthread_left').empty();
if (this.thread) this.thread.stop();
this.thread = new mail.Thread(this, {'res_model': this.view.model, 'res_id': this.view.datarecord.id, 'uid': this.session.uid});
this.thread = new mail.Thread(this, {'res_model': this.view.model, 'res_id': this.view.datarecord.id, 'uid': this.session.uid, 'show_post_comment': true});
this.thread.appendTo(this.$element.find('div.oe_mail_recthread_left'));
return fetch_fol_done && fetch_sub_done;
},