Skip to content

Commit

Permalink
Remove tracking_state related from mail.mail.statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
antespi committed Sep 6, 2016
1 parent 2264297 commit 36cab84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions mail_tracking_mass_mailing/models/mail_mail_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ class MailMailStatistics(models.Model):
tracking_event_ids = fields.One2many(
string="Tracking events", comodel_name='mail.tracking.event',
related='mail_tracking_id.tracking_event_ids', readonly=True)
tracking_state = fields.Selection(
string="State", related='mail_tracking_id.state', store=True)
2 changes: 0 additions & 2 deletions mail_tracking_mass_mailing/tests/test_mass_mailing.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def test_tracking_email_link(self):
}
tracking_email.event_create('open', metadata)
self.assertTrue(stat.opened)
self.assertEqual(stat.tracking_state, 'opened')

def _tracking_email_bounce(self, event_type, state):
self.mailing.send_mail()
Expand All @@ -89,7 +88,6 @@ def _tracking_email_bounce(self, event_type, state):
}
tracking_email.event_create(event_type, metadata)
self.assertTrue(stat.bounced)
self.assertEqual(stat.tracking_state, state)

def test_tracking_email_hard_bounce(self):
self._tracking_email_bounce('hard_bounce', 'bounced')
Expand Down
14 changes: 0 additions & 14 deletions mail_tracking_mass_mailing/views/mail_mail_statistics_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<field name="model">mail.mail.statistics</field>
<field name="inherit_id" ref="mass_mailing.view_mail_mail_statistics_form"/>
<field name="arch" type="xml">
<field name="res_id" position="after">
<field name="tracking_state"/>
</field>
<xpath expr="//form" position="inside">
<group>
<field name="mail_tracking_id" />
Expand All @@ -34,16 +31,5 @@
</field>
</record>

<record model="ir.ui.view" id="view_mail_mail_statistics_tree">
<field name="name">Add partner and state columns</field>
<field name="model">mail.mail.statistics</field>
<field name="inherit_id" ref="mass_mailing.view_mail_mail_statistics_tree"/>
<field name="arch" type="xml">
<field name="sent" position="before">
<field name="tracking_state"/>
</field>
</field>
</record>

</data>
</openerp>

0 comments on commit 36cab84

Please sign in to comment.