From 27e92415a931abc91aad8da95bf3b15143682263 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 2 Mar 2016 11:58:53 +0100 Subject: [PATCH] [FIX] mail: followers: allow edit subtypes even if not follower Before this rev., editing the subtypes of other followers was only possible if the current user already opened a record of the same model of which he is himself follower. --- addons/mail/static/src/js/followers.js | 5 ----- addons/mail/static/src/xml/followers.xml | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/mail/static/src/js/followers.js b/addons/mail/static/src/js/followers.js index 36f45af2893..2f3d0770bff 100644 --- a/addons/mail/static/src/js/followers.js +++ b/addons/mail/static/src/js/followers.js @@ -287,11 +287,6 @@ var Followers = form_common.AbstractField.extend({ $list.empty(); this.data_subtype = data; - this.records_length = _.map(data, function(value, index) { return index; }).length; - - if (this.records_length > 1) { - this.display_followers(); - } _.each(data, function (record) { if (old_parent_model !== record.parent_model && old_parent_model !== undefined) { diff --git a/addons/mail/static/src/xml/followers.xml b/addons/mail/static/src/xml/followers.xml index b9113957770..108622b339f 100644 --- a/addons/mail/static/src/xml/followers.xml +++ b/addons/mail/static/src/xml/followers.xml @@ -42,8 +42,8 @@ t-att-title="record.name" t-att-data-oe-model="record.res_model" t-att-data-oe-id="record.res_id"> -