summaryrefslogtreecommitdiff
path: root/addons/website_mail/controllers
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-08-12 09:36:25 +0200
committerRaphael Collet <rco@openerp.com>2016-08-16 09:55:46 +0200
commitffdafd3f8a6a18f2af9d5aa7f2446c299cb71967 (patch)
treede82f81db7be5b64f9f4226aea31048f2089bf74 /addons/website_mail/controllers
parent856f2e87e645db697a67fc85caae07bf0fe11d3f (diff)
[REM] most uses of `_model` (useless in most cases)
Diffstat (limited to 'addons/website_mail/controllers')
-rw-r--r--addons/website_mail/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_mail/controllers/main.py b/addons/website_mail/controllers/main.py
index ca7678a458e..c966b2bede7 100644
--- a/addons/website_mail/controllers/main.py
+++ b/addons/website_mail/controllers/main.py
@@ -16,7 +16,7 @@ def object_shasign(record=False, res_model='', res_id=None, **kw):
shasign = False
timestamp = int(time())
if record:
- shasign = sha1('%s%s%s%s' % (record._model, record.id, secret, timestamp)).hexdigest()
+ shasign = sha1('%s%s%s%s' % (record._name, record.id, secret, timestamp)).hexdigest()
elif res_model and res_id:
shasign = sha1('%s%s%s%s' % (res_model, res_id, secret, timestamp)).hexdigest()
return (shasign, timestamp)