You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
657 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  3. # Copyright 2017 Vicent Cubells - <vicent.cubells@tecnativa.com>
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from openerp import models, fields
  6. class MailMailStatistics(models.Model):
  7. _inherit = "mail.mail.statistics"
  8. mail_tracking_id = fields.Many2one(
  9. string="Mail tracking", comodel_name='mail.tracking.email',
  10. readonly=True)
  11. tracking_event_ids = fields.One2many(
  12. string="Tracking events", comodel_name='mail.tracking.event',
  13. related='mail_tracking_id.tracking_event_ids', readonly=True)