<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa - <antonio.espinosa@tecnativa.com>
     Copyright 2017 Vicent Cubells - <vicent.cubells@tecnativa.com>
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>

<record model="ir.ui.view" id="mailing_contact_view_tree">
    <field name="name">Add email score and stars</field>
    <field name="model">mailing.contact</field>
    <field name="inherit_id" ref="mass_mailing.mailing_contact_view_tree" />
    <field name="arch" type="xml">
        <field name="is_blacklisted" position="after">
            <field name="email_bounced" />
            <field name="email_score" widget="progressbar" />
        </field>
    </field>
</record>

<record model="ir.ui.view" id="mailing_contact_view_search">
    <field name="name">Filter bounced contacts</field>
    <field name="model">mailing.contact</field>
    <field name="inherit_id" ref="mass_mailing.mailing_contact_view_search" />
    <field name="arch" type="xml">
        <filter name="filter_not_email_bl" position="after">
            <filter
                    string="Email bounced"
                    name="email_bounced"
                    domain="[('email_bounced', '=', True)]"
                />
        </filter>
    </field>
</record>

</odoo>
