<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2018 David Vidal <david.vidal@tecnativa.com>
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<odoo>

    <record id="view_mail_mass_mailing_contact_form" model="ir.ui.view">
        <field name="model">mail.mass_mailing.contact</field>
        <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_form"/>
        <field name="arch" type="xml">
            <field name="list_ids" position="attributes">
                <attribute name="invisible">1</attribute>
            </field>
            <field name="email" position="after">
                <field name="mailing_list_id"/>
            </field>
        </field>
    </record>

    <record id="view_mail_mass_mailing_contact_tree" model="ir.ui.view">
        <field name="model">mail.mass_mailing.contact</field>
        <field name="inherit_id" ref="mass_mailing.view_mail_mass_mailing_contact_tree"/>
        <field name="arch" type="xml">
            <field name="email" position="before">
                <field name="mailing_list_id"/>
            </field>
        </field>
    </record>

</odoo>
