From ffdafd3f8a6a18f2af9d5aa7f2446c299cb71967 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Fri, 12 Aug 2016 09:36:25 +0200 Subject: [REM] most uses of `_model` (useless in most cases) --- addons/website_mail/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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) -- cgit v1.2.3