diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-06-05 15:10:45 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-06-05 15:10:45 +0200 |
| commit | e7f0dffb6ad729f49c81186381fb8db531c28fd1 (patch) | |
| tree | 59f0111e2ebf2ce1408d52718f1310ba92896a79 /addons/mass_mailing/models | |
| parent | a5e6afe55935fba2b4a8d7ab90a46d611887f4c7 (diff) | |
| parent | c301122b5fe696a981dc2b2a84c333c1687c5f47 (diff) | |
[MERGE] forward port branch saas-15 up to c301122b5fe
Diffstat (limited to 'addons/mass_mailing/models')
| -rw-r--r-- | addons/mass_mailing/models/mail_mail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/models/mail_mail.py b/addons/mass_mailing/models/mail_mail.py index e67010ca3a7..e41a4af19ac 100644 --- a/addons/mass_mailing/models/mail_mail.py +++ b/addons/mass_mailing/models/mail_mail.py @@ -92,7 +92,7 @@ class MailMail(models.Model): def send_get_email_dict(self, partner=None): # TDE: temporary addition (mail was parameter) due to semi-new-API res = super(MailMail, self).send_get_email_dict(partner) - base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url') + base_url = self.env['ir.config_parameter'].sudo().get_param('web.base.url').rstrip('/') if self.mailing_id and res.get('body') and res.get('email_to'): emails = tools.email_split(res.get('email_to')[0]) email_to = emails and emails[0] or False |
