diff --git a/addons/mass_mailing/data/mass_mailing_demo.xml b/addons/mass_mailing/data/mass_mailing_demo.xml index deb37b23398..bb4a942bbff 100644 --- a/addons/mass_mailing/data/mass_mailing_demo.xml +++ b/addons/mass_mailing/data/mass_mailing_demo.xml @@ -215,7 +215,7 @@ - 1111004@odoo.com + 1111005@odoo.com res.partner julie.richards84@example.com @@ -224,13 +224,22 @@ - 1111004@odoo.com + 1111006@odoo.com res.partner travis.mendoza24@example.com + + + 1111007@odoo.com + res.partner + + travis.mendoza24@example.com + + + diff --git a/addons/mass_mailing/models/mailing.py b/addons/mass_mailing/models/mailing.py index e644f4b0d7c..172302f21eb 100644 --- a/addons/mass_mailing/models/mailing.py +++ b/addons/mass_mailing/models/mailing.py @@ -315,6 +315,9 @@ class MassMailing(models.Model): def action_view_traces_failed(self): return self._action_view_traces_filtered('failed') + def action_view_traces_sent(self): + return self._action_view_traces_filtered('sent') + def _action_view_traces_filtered(self, view_filter): action = self.env.ref('mass_mailing.mailing_trace_action').read()[0] action['name'] = _('%s Traces') % (self.name) @@ -323,9 +326,6 @@ class MassMailing(models.Model): action['context'][filter_key] = True return action - def action_view_sent(self): - return self._action_view_documents_filtered('sent') - def action_view_opened(self): return self._action_view_documents_filtered('opened') @@ -342,7 +342,7 @@ class MassMailing(models.Model): return self._action_view_documents_filtered('delivered') def _action_view_documents_filtered(self, view_filter): - if view_filter in ('sent', 'opened', 'replied', 'bounced', 'clicked'): + if view_filter in ('opened', 'replied', 'bounced', 'clicked'): opened_stats = self.mailing_trace_ids.filtered(lambda stat: stat[view_filter]) elif view_filter == ('delivered'): opened_stats = self.mailing_trace_ids.filtered(lambda stat: stat.sent and not stat.bounced) diff --git a/addons/mass_mailing/views/mailing_mailing_views.xml b/addons/mass_mailing/views/mailing_mailing_views.xml index 1469bb1f6ba..f4ef91a8c31 100644 --- a/addons/mass_mailing/views/mailing_mailing_views.xml +++ b/addons/mass_mailing/views/mailing_mailing_views.xml @@ -57,7 +57,7 @@ - + + + + + + emails have been sent. + + + - - - + + + + + + To track replies, this address must belong to this database. + + diff --git a/addons/mass_mailing_crm/views/mailing_mailing_views.xml b/addons/mass_mailing_crm/views/mailing_mailing_views.xml index e5edbd55c54..dc75114a7cb 100644 --- a/addons/mass_mailing_crm/views/mailing_mailing_views.xml +++ b/addons/mass_mailing_crm/views/mailing_mailing_views.xml @@ -5,7 +5,7 @@ mailing.mailing - + mailing.mailing - + SMS Text Message are in queue and will be sent soon. + + {'invisible': [('mailing_type', '!=', 'mail')]} + + + SMS Text Message have been sent. + {'invisible': [('mailing_type', '!=', 'mail')]} @@ -80,27 +86,6 @@ This SMS marketing is scheduled for - - {'invisible': ['|', '&', ('sent', '=', 0), ('state', 'in', ('draft', 'test')), ('mailing_type', '!=', 'mail')]} - - - - - - - - - - - {'invisible': ['|',('mailing_type', '!=', 'mail'),('state', 'in', ('draft','test'))]}