Browse Source
[IMP] mail_tracking: Allow to define a custom mail_tracking base url
pull/108/head
Antonio Espinosa
8 years ago
committed by
Damien Bouvy
No known key found for this signature in database
GPG Key ID: 1D0AB759B4B928E3
1 changed files with
3 additions and
1 deletions
-
mail_tracking/models/mail_tracking_email.py
|
@ -167,7 +167,9 @@ class MailTrackingEmail(models.Model): |
|
|
fields.Date.from_string(email.time)) |
|
|
fields.Date.from_string(email.time)) |
|
|
|
|
|
|
|
|
def _get_mail_tracking_img(self): |
|
|
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 = ( |
|
|
path_url = ( |
|
|
'mail/tracking/open/%(db)s/%(tracking_email_id)s/blank.gif' % { |
|
|
'mail/tracking/open/%(db)s/%(tracking_email_id)s/blank.gif' % { |
|
|
'db': self.env.cr.dbname, |
|
|
'db': self.env.cr.dbname, |
|
|