<?xml version="1.0"?>
<odoo>

    <record id="mailing_contact_to_list_view_form" model="ir.ui.view" >
        <field name="name">mailing.contact.to.list.view.form</field>
            <field name="model">mailing.contact.to.list</field>
            <field name="arch" type="xml">
                <form string="Send a Sample Mail">
                    <group>
                        <field name="mailing_list_id" options="{'no_create_edit': True, 'no_open': True}"/>
                        <field name="contact_ids" invisible="1"/>
                    </group>
                    <footer>
                        <button string="Add" name="action_add_contacts" type="object" class="btn-primary" data-hotkey="q"/>
                        <button string="Add and Send Mailing" name="action_add_contacts_and_send_mailing" type="object" class="btn-primary" data-hotkey="w"/>
                        <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x" />
                    </footer>
                </form>
            </field>
    </record>

    <record id="mailing_contact_to_list_action" model="ir.actions.act_window">
        <field name="name">Add Selected Contacts to a Mailing List</field>
        <field name="res_model">mailing.contact.to.list</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>

</odoo>
