[FIX] mail_followers widget: fixed bug trying to get current record id, now using datarecord.id.

bzr revid: tde@openerp.com-20121019083612-9oklso9sht5qj5tq
This commit is contained in:
Thibault Delavallée
2012-10-19 10:36:12 +02:00
parent e47d26a9e4
commit 0b4a35d62e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
},
+1 -1
View File
@@ -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;