From 5dbd526a19572a3858779d5ddebe7298dc2e85ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 13 Mar 2012 18:06:48 +0100 Subject: [PATCH] [IMP] Thread widget: reply textarea shown by default when viewing a record. bzr revid: tde@openerp.com-20120313170648-5uln1ozxvhv8yfxx --- addons/mail/static/src/js/mail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 57c01a77b8c..acd61eb7e69 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -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; },