diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index d49b7a0768c..bdb6f39e69f 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -77,6 +77,11 @@ openerp.mail = function(session) { display_comments: function (records) { var self = this; + + // temporary verification of need_action_user_id (TODO: better display) + if (this.params.need_action_user_id) { + $('
').text('Need action by ' + this.params.need_action_user_id[1]).appendTo(self.$element.find('div.oe_mail_thread_display')); } + /* WIP: map matched regexp -> records to browse with name */ //_(records).each(function (record) { //self.do_check_internal_links(record.body_text); @@ -222,6 +227,7 @@ openerp.mail = function(session) { }, set_value: function() { + console.log(this); var self = this; this._super.apply(this, arguments); /* hide follow/unfollow/see followers buttons */ @@ -237,7 +243,8 @@ openerp.mail = function(session) { this.fetch_subscribers(); /* create ThreadDisplay widget and render it */ this.$element.find('div.oe_mail_thread_left').empty(); - this.thread_display = new mail.ThreadDisplay(this, {'res_model': this.view.model, 'res_id': this.view.datarecord.id, 'uid': this.session.uid}); + this.thread_display = new mail.ThreadDisplay(this, {'res_model': this.view.model, 'res_id': this.view.datarecord.id, + 'uid': this.session.uid, 'need_action_user_id': this.view.datarecord.need_action_user_id}); this.thread_display.appendTo(this.$element.find('div.oe_mail_thread_left')); }, diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index b2cc1e8e0c7..5d36df9fd57 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -99,9 +99,6 @@