From b07b8a5b1fc0773d4dbbaf13dba4ed0d4a3ae3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 19 Jun 2014 09:33:36 +0200 Subject: [FIX] website_mail: restored follow JS code that was wrongly merged with the mail group follow snippet. Now both widget animation exists, the second being more complex and therefore requiring a different animation. --- addons/website_mail/controllers/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'addons/website_mail/controllers/main.py') diff --git a/addons/website_mail/controllers/main.py b/addons/website_mail/controllers/main.py index 081ba93b8b4..c5896ecd16c 100644 --- a/addons/website_mail/controllers/main.py +++ b/addons/website_mail/controllers/main.py @@ -94,9 +94,8 @@ class WebsiteMail(http.Controller): values['is_follower'] = len( request.registry['mail.followers'].search( cr, SUPERUSER_ID, [ - ('res_model', '=', 'mail.group'), + ('res_model', '=', model), ('res_id', '=', obj_ids[0]), ('partner_id', '=', partner_id.id) ], context=context)) == 1 - return values -- cgit v1.2.3