[FIX] Followers widget: fixed bad refreshing when going through various form views.

bzr revid: tde@openerp.com-20120920123959-3799cpr57f7ac3u1
This commit is contained in:
Thibault Delavallée
2012-09-20 14:39:59 +02:00
parent 6fa56dcba5
commit fda33df8a6
+1 -2
View File
@@ -130,11 +130,10 @@ openerp_mail_followers = function(session, mail) {
/** Display subtypes: {'name': default, followed} */
display_subtypes: function (records) {
var subtype_list = this.$('ul.oe_mail_subtypes').empty();
if (! this.message_is_follower_value_) {
this.$('div.oe_mail_recthread_subtypes').remove();
return;
}
var subtype_list = this.$el.find('ul.oe_mail_subtypes').empty();
_(records).each(function (record, record_name) {
record.name = record_name;
record.followed = record.followed || undefined;