[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:
@@ -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;
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user