summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2019-07-22 09:55:45 +0000
committerRomain Derie <rde@odoo.com>2019-07-24 10:48:53 +0000
commitcfeb8a5185cd325d8687908c9976d5f7a9755f4a (patch)
treeb46fc7d62d2399a66bd5417aba927dce037475ee /addons
parent6df11fc42d965940e3dcdd64b5a197a60bb6f4e4 (diff)
[FIX] mail: remove useless hasattr on get_base_url
This check was introduced with d82b897ea15b in 12.0 where `get_base_url` was not yet a model method. Since f727cd2645, in saas-12.5, that method is now on model, making the `hasattr` check useless. closes odoo/odoo#35057 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/mail_thread.py b/addons/mail/models/mail_thread.py
index 757a77735f3..27357c8d8cb 100644
--- a/addons/mail/models/mail_thread.py
+++ b/addons/mail/models/mail_thread.py
@@ -2324,7 +2324,7 @@ class MailThread(models.AbstractModel):
params['token'] = token
link = '%s?%s' % (base_link, url_encode(params))
- if self and hasattr(self, 'get_base_url'):
+ if self:
link = self[0].get_base_url() + link
return link