<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright 2019-2024 Akretion France (https://www.akretion.com)
  @author Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->

<odoo>

<record id="commission_compute_form" model="ir.ui.view">
    <field name="name">commission.compute.form</field>
    <field name="model">commission.compute</field>
    <field name="arch" type="xml">
        <form>
            <group name="main">
                <field name="company_id" groups="base.group_multi_company"/>
                <field name="company_id" invisible="1"/>
                <field name="date_range_type_id" invisible="1"/>
                <field name="date_range_id"/>
                <field name="date_start"/>
                <field name="date_end"/>
            </group>
            <footer>
                <button name="run" type="object" string="Compute"
                    class="btn-primary"/>
                <button special="cancel" string="Cancel"/>
            </footer>
        </form>
    </field>
</record>

<record id="commission_compute_action" model="ir.actions.act_window">
    <field name="name">Compute Commissions</field>
    <field name="res_model">commission.compute</field>
    <field name="view_mode">form</field>
    <field name="target">new</field>
</record>

<menuitem id="commission_compute_menu" action="commission_compute_action" parent="commission_root" sequence="15" groups="account.group_account_user"/>

</odoo>
