[IMP]improve code
bzr revid: sgo@tinyerp.com-20121126123203-3qrbp9p8cgpcfd2y
This commit is contained in:
@@ -238,9 +238,6 @@ openerp_mail_followers = function(session, mail) {
|
||||
checklist.push(parseInt($(record).data('id')));
|
||||
}
|
||||
});
|
||||
if (!checklist.length) {
|
||||
return self.do_unfollow();
|
||||
}
|
||||
var context = new session.web.CompoundContext(this.build_context(), {});
|
||||
return this.ds_model.call('message_subscribe_users', [[this.view.datarecord.id], [this.session.uid], this.message_is_follower ? checklist : undefined, context])
|
||||
.then(this.proxy('read_value'));
|
||||
|
||||
Reference in New Issue
Block a user