<?xml version="1.0" encoding="utf-8" ?>
<odoo>
        <record id="payrolls_management_wizard_form" model="ir.ui.view">
            <field name="name">payroll.management.wizard.form</field>
            <field name="model">payroll.management.wizard</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group>
                            <field name="subject" required="1" />
                        </group>
                        <field name="payrolls" widget="many2many_binary" />
                    <footer>
                        <button
                            string="Send"
                            name="send_payrolls"
                            type="object"
                            class="oe_highlight"
                        />
                        <button
                            string="Close"
                            class="btn btn-secondary"
                            special="cancel"
                        />
                    </footer>
                    </sheet>
                </form>
            </field>
        </record>
        <record id="payrolls_management_wizard_action" model="ir.actions.act_window">
            <field name="name">Payrolls Management</field>
            <field name="res_model">payroll.management.wizard</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

        <menuitem
        id="payrolls_management_wizard_menu_action"
        action="payrolls_management_wizard_action"
        parent="hr.menu_hr_root"
    />
</odoo>
