[ADD] mail: res_partner message_bounce

Add the message_bounce field on res.partner. This allows bounced emails to increment
the counter and thus to filter / exclude / archive partners whose email is invalid.
This commit is contained in:
Thibault Delavallée
2015-12-14 11:57:13 +01:00
parent 4aabc43fab
commit f65a7ba618
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@ class Partner(models.Model):
_mail_flat_thread = False
_mail_mass_mailing = _('Customers')
message_bounce = fields.Integer('Bounce', help="Counter of the number of bounced emails for this contact")
notify_email = fields.Selection([
('none', 'Never'),
('always', 'All Messages')],
+1
View File
@@ -10,6 +10,7 @@
<xpath expr="//field[@name='user_id']" position="after">
<field name='notify_email' widget="radio" groups="base.group_no_one"/>
<field name="opt_out" string="Mailing Opt-Out" groups="base.group_no_one"/>
<field name="message_bounce" groups="base.group_no_one"/>
</xpath>
<xpath expr="//sheet" position="after">
<div class="oe_chatter">