<?xml version="1.0"?>

<!--
SPDX-FileCopyrightText: 2008-2026 Luis Falcón <falcon@gnuhealth.org>
SPDX-FileCopyrightText: 2011-2026 GNU Solidario <health@gnusolidario.org>

SPDX-License-Identifier: GPL-3.0-or-later
-->

<tryton>
    <data>

<!-- Insurance Plan Product Policy -->

        <record model="ir.ui.view" id="gnuhealth_insurance_plan_product_policy_view">
            <field name="model">gnuhealth.insurance.plan.product.policy</field>
            <field name="type">form</field>
            <field name="name">gnuhealth_insurance_plan_product_policy</field>
        </record>

        <record model="ir.ui.view" id="gnuhealth_insurance_plan_product_policy_tree">
            <field name="model">gnuhealth.insurance.plan.product.policy</field>
            <field name="type">tree</field>
            <field name="name">gnuhealth_insurance_plan_product_policy_tree</field>
        </record>
        
        <record model="ir.action.act_window" id="action_gnuhealth_insurance_plan_product_policy_view">
            <field name="name">Plan Product Policies</field>
            <field name="res_model">gnuhealth.insurance.plan.product.policy</field>
        </record>

        <record model="ir.action.act_window.view" id="act_gnuhealth_insurance_plan_product_policy_tree">
            <field name="sequence" eval="10"/>
            <field name="view" ref="gnuhealth_insurance_plan_product_policy_tree"/>
            <field name="act_window" ref="action_gnuhealth_insurance_plan_product_policy_view"/>
        </record>

        <record model="ir.action.act_window.view" id="act_gnuhealth_insurance_plan_product_policy_form">
            <field name="sequence" eval="20"/>
            <field name="view" ref="gnuhealth_insurance_plan_product_policy_view"/>
            <field name="act_window" ref="action_gnuhealth_insurance_plan_product_policy_view"/>
        </record>

        <menuitem action="action_gnuhealth_insurance_plan_product_policy_view"
            id="menu_gnuhealth_insurance_plan_product_policy_list" icon="gnuhealth-list"
            parent="health.gnuhealth_conf_insurances"/>

<!-- Insurances plan -->

        <record model="ir.ui.view" id="gnuhealth_insurance_plan_view">
            <field name="model">gnuhealth.insurance.plan</field>
            <field name="inherit" ref="health.gnuhealth_insurance_plan_view"/>
            <field name="name">gnuhealth_insurance_plan</field>
        </record>


<!-- Health Service -->

        <record model="ir.ui.view" id="view_gnuhealth_service_form">
            <field name="model">gnuhealth.health_service</field>
            <field name="inherit" ref="health_services.gnuhealth_health_service_view"/>
            <field name="name">gnuhealth_health_service</field>
        </record>

<!-- Patient Procedures -->

        <record model="ir.ui.view" id="view_gnuhealth_patient_procedure_form">
            <field name="model">gnuhealth.patient.procedure</field>
            <field name="inherit" ref="health.gnuhealth_patient_procedure_form"/>
            <field name="name">gnuhealth_patient_procedure_form</field>
        </record>

       <record model="ir.ui.view" id="view_gnuhealth_patient_procedure_tree">
            <field name="model">gnuhealth.patient.procedure</field>
            <field name="inherit" ref="health.gnuhealth_patient_procedure_tree"/>
            <field name="name">gnuhealth_patient_procedure_tree</field>
        </record>

    </data>
</tryton>
