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.

16 lines
585 B

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