[FIX] mail_followers: message_subtype_data on create

bzr revid: chm@openerp.com-20130205092622-mhqt5ei3uvqrhydq
This commit is contained in:
Christophe Matthieu
2013-02-05 10:26:22 +01:00
parent 27625e4f88
commit 522bc243b5
+1 -1
View File
@@ -217,7 +217,7 @@ openerp_mail_followers = function(session, mail) {
var self = this;
var subtype_list_ul = this.$('.oe_subtype_list');
subtype_list_ul.empty();
var records = data[this.view.datarecord.id || this.view.dataset.ids[0]].message_subtype_data;
var records = data[this.view.datarecord.id || 'null'].message_subtype_data;
var nb_subtype = 0;
_(records).each(function (record) {nb_subtype++;});
if (nb_subtype > 1) {