diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-06-19 09:33:36 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-06-19 09:33:36 +0200 |
| commit | b07b8a5b1fc0773d4dbbaf13dba4ed0d4a3ae3d6 (patch) | |
| tree | cb0910af1bc15a74bb592a7be961804f94df3c27 /addons/website_mail/controllers/main.py | |
| parent | 8d282f3b4fa0494cc26f3c10535f17b0feb2b1cd (diff) | |
[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.
Diffstat (limited to 'addons/website_mail/controllers/main.py')
| -rw-r--r-- | addons/website_mail/controllers/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
