From cfdc7d924b770dfa31537ed199fb52900a970092 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Fri, 14 Oct 2016 12:20:37 +0200 Subject: [PATCH] [IMP] mail_tracking: Allow to define a custom mail_tracking base url --- mail_tracking/__openerp__.py | 2 +- mail_tracking/models/mail_tracking_email.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mail_tracking/__openerp__.py b/mail_tracking/__openerp__.py index d5bf9b9e..42016ecd 100644 --- a/mail_tracking/__openerp__.py +++ b/mail_tracking/__openerp__.py @@ -5,7 +5,7 @@ { "name": "Email tracking", "summary": "Email tracking system for all mails sent", - "version": "9.0.2.0.0", + "version": "9.0.2.0.1", "category": "Social Network", "website": "http://www.tecnativa.com", "author": "Tecnativa, " diff --git a/mail_tracking/models/mail_tracking_email.py b/mail_tracking/models/mail_tracking_email.py index 3c3db750..180e649b 100644 --- a/mail_tracking/models/mail_tracking_email.py +++ b/mail_tracking/models/mail_tracking_email.py @@ -171,7 +171,9 @@ class MailTrackingEmail(models.Model): fields.Date.from_string(email.time)) def _get_mail_tracking_img(self): - base_url = self.env['ir.config_parameter'].get_param('web.base.url') + m_config = self.env['ir.config_parameter'] + base_url = (m_config.get_param('mail_tracking.base.url') or + m_config.get_param('web.base.url')) path_url = ( 'mail/tracking/open/%(db)s/%(tracking_email_id)s/blank.gif' % { 'db': self.env.cr.dbname,