[FIX] mail_followers widget: fixed a traceback appearing
when quickly changing the displayed record in a form view when the followers widget is displayed. This was due to variables not correctly set because of a concurrence issue. However there is no need to hse this.view.datarecord or dataset as the function already receives its id as argument. bzr revid: tde@openerp.com-20131126124630-2m5wjwr008ys1e9e
This commit is contained in:
parent
6e574a8e4d
commit
a6ae52affa
|
@ -264,7 +264,7 @@ openerp_mail_followers = function(session, mail) {
|
|||
var $list = this.$('.oe_subtype_list');
|
||||
}
|
||||
$list.empty().hide();
|
||||
var records = data[this.view.datarecord.id || this.view.dataset.ids[0]].message_subtype_data;
|
||||
var records = data[id].message_subtype_data;
|
||||
this.records_length = $.map(records, function(value, index) { return index; }).length;
|
||||
if (this.records_length > 1) { self.display_followers(); }
|
||||
_(records).each(function (record, record_name) {
|
||||
|
|
Loading…
Reference in New Issue