diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 6c08f2c46d7..bd9ba6ef6f7 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -671,7 +671,7 @@ openerp.mail = function(session) { (!read && this.options.thread.typeof_thread == 'archives')) { this.animated_destroy({fadeTime:250}); } - + // TDE note: should have a context here this.ds_notification.call('set_message_read', [ids, read]); return false; }, diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 735b3e00e0b..49a919a28a4 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -188,7 +188,7 @@ openerp_mail_followers = function(session, mail) { display_subtypes:function (data) { var self = this; var subtype_list_ul = this.$('.oe_subtypes'); - var records = data[this.view.dataset.ids[0]].message_subtype_data; + var records = data[this.view.datarecord.id].message_subtype_data; _(records).each(function (record, record_name) { record.name = record_name;