[FIX] mail: rpc with not false value

bzr revid: chm@openerp.com-20120925091236-l9ywccbyjsoa31ph
This commit is contained in:
Christophe Matthieu
2012-09-25 11:12:36 +02:00
parent 4525190e72
commit bf3cb4bcd6
+2 -1
View File
@@ -104,7 +104,8 @@ openerp_mail_followers = function(session, mail) {
fetch_followers: function (value_) {
this.value = value_ || {};
this.message_is_follower = (this.getParent().fields.message_is_follower && this.getParent().fields.message_is_follower.get_value());
return this.ds_follow.call('read', [value_, ['name', 'user_ids']]).pipe(this.proxy('display_followers'), this.proxy('display_generic'));
if(value_)
return this.ds_follow.call('read', [this.value, ['name', 'user_ids']]).pipe(this.proxy('display_followers'), this.proxy('display_generic'));
},
/* Display generic info about follower, for people not having access to res_partner */