summaryrefslogtreecommitdiff
path: root/addons/website_mail/static
diff options
context:
space:
mode:
authorKeyur Gajjar <kga@odoo.com>2015-08-20 15:16:03 +0530
committerJérome Maes <jem@openerp.com>2016-04-13 11:20:53 +0200
commit30f48eb6b677105c47f67d66a71b1102cafbb558 (patch)
treec07109e1a159c812cd7dba403404905a5c92568e /addons/website_mail/static
parentd672d8aa867140bec8bd3a3a2f89e22fb9f14364 (diff)
[MIG] website_mail: code migration to new api
No functional changes, only rewrite the code with the api.v8 which more pythonic and smooth.
Diffstat (limited to 'addons/website_mail/static')
-rw-r--r--addons/website_mail/static/src/js/follow.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_mail/static/src/js/follow.js b/addons/website_mail/static/src/js/follow.js
index 3e4efb78acc..f9b7c7bd8b8 100644
--- a/addons/website_mail/static/src/js/follow.js
+++ b/addons/website_mail/static/src/js/follow.js
@@ -11,7 +11,7 @@ animation.registry.follow = animation.Class.extend({
this.is_user = false;
ajax.jsonRpc('/website_mail/is_follower', 'call', {
model: this.$target.data('object'),
- id: this.$target.data('id'),
+ res_id: this.$target.data('id'),
}).always(function (data) {
self.is_user = data.is_user;
self.email = data.email;