<odoo>

    <record id="l10n_mx_cfdi_series_form_view" model="ir.ui.view">
        <field name="name">Serie CFDI</field>
        <field name="model">l10n_mx_cfdi.series</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <field name="name" string="Nombre" />
                        <field name="code" string="Código" invisible="1" />
                        <field name="prefix" string="Serie" />
                        <field name="number_next_actual" string="Folio" />
                        <field name="company_id" groups="base.group_system" />
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="l10n_mx_cfdi_series_list_view" model="ir.ui.view">
        <field name="name">Serie CFDI</field>
        <field name="model">l10n_mx_cfdi.series</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" string="Nombre" />
                <field name="prefix" string="Serie" />
                <field name="number_next_actual" string="Folio" />
                <field name="company_id" groups="base.group_system" />
            </tree>
        </field>
    </record>

    <record id="l10n_mx_cfdi_series_action" model="ir.actions.act_window">
        <field name="name">Serie CFDI</field>
        <field name="res_model">l10n_mx_cfdi.series</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="l10n_mx_cfdi_series_list_view" />
        <field name="search_view_id" ref="l10n_mx_cfdi_series_list_view" />
    </record>

    <menuitem
        id="cfdi_series_menu"
        name="Series"
        parent="l10n_mx_cfdi.cfdi_menu"
        groups="base.group_user"
        action="l10n_mx_cfdi_series_action"
    />

</odoo>
