[FIX] mail_followers: display_subtypes read first time

bzr revid: chm@openerp.com-20121019132307-s7hvnjltjvc9kndo
This commit is contained in:
Christophe Matthieu 2012-10-19 15:23:07 +02:00
parent aefa8b2337
commit 591c0ff348
1 changed files with 1 additions and 1 deletions

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 || this.view.dataset.ids[0]].message_subtype_data;
_(records).each(function (record, record_name) {
record.name = record_name;