<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2024 Raumschmiede GmbH
     Copyright 2024 BCIM
     Copyright 2024 ACSONE SA/NV
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="rma_reason_form_view">
        <field name="model">rma.reason</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <field name="name" />
                        <field name="company_id" groups="base.group_multi_company" />
                        <field name="description" />
                        <field name="allowed_operation_ids" widget="many2many_tags" />
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record model="ir.ui.view" id="rma_reason_search_view">
        <field name="model">rma.reason</field>
        <field name="arch" type="xml">
            <search>
                <field name="name" />
                <field name="company_id" groups="base.group_multi_company" />
            </search>
        </field>
    </record>

    <record model="ir.ui.view" id="rma_reason_tree_view">
        <field name="model">rma.reason</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name" />
                <field name="company_id" groups="base.group_multi_company" />
            </tree>
        </field>
    </record>

    <record model="ir.actions.act_window" id="rma_reason_act_window">
        <field name="name">RMA Reasons</field>
        <field name="res_model">rma.reason</field>
        <field name="view_mode">tree,form</field>
        <field name="domain">[]</field>
        <field name="context">{}</field>
    </record>

    <record model="ir.ui.menu" id="rma_reason_menu">
        <field name="name">RMA Reasons</field>
        <field name="parent_id" ref="rma.rma_configuration_menu" />
        <field name="action" ref="rma_reason_act_window" />
        <field name="sequence" eval="16" />
    </record>

</odoo>
