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
630 B

  1. # Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
  2. # Copyright 2017 Vicent Cubells - <vicent.cubells@tecnativa.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo 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)