<?xml version="1.0" encoding="utf-8" ?>
<!--
    Copyright 2021 Camptocamp (http://www.camptocamp.com).
    @author Iván Todorovich <ivan.todorovich@gmail.com>
    License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>

    <record id="view_mail_autosubscribe_form" model="ir.ui.view">
        <field name="model">mail.autosubscribe</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" placeholder="Name" />
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="model_id" options="{'no_create': True}" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_mail_autosubscribe_tree" model="ir.ui.view">
        <field name="model">mail.autosubscribe</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="model_id" />
            </tree>
        </field>
    </record>

    <record id="action_mail_autosubscribe" model="ir.actions.act_window">
        <field name="name">Mail Auto Subscribe</field>
        <field name="res_model">mail.autosubscribe</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
        id="menu_mail_autosubscribe"
        name="Autosubscribe Models"
        action="action_mail_autosubscribe"
        parent="base.menu_automation"
        sequence="50"
    />

</odoo>
