<?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>

<!-- DU ENTOMOLOGICAL SURVEY -->

        <record model="ir.ui.view" id="gnuhealth_dengue_du_survey_form">
            <field name="model">gnuhealth.dengue_du_survey</field>
            <field name="type">form</field>
            <field name="name">gnuhealth_dengue_du_survey_form</field>
        </record>

        <record model="ir.ui.view" id="gnuhealth_dengue_du_survey_tree">
            <field name="model">gnuhealth.dengue_du_survey</field>
            <field name="type">tree</field>
            <field name="name">gnuhealth_dengue_du_survey_tree</field>
        </record>


        <!-- Shortcut to the Dengue Domiciliary Survey from the DU -->

        <record model="ir.action.act_window" id="act_dengue_du_survey_form">
            <field name="name">Dengue DU Survey</field>
            <field name="res_model">gnuhealth.dengue_du_survey</field>
            <field name="domain" eval="[('du', '=', Eval('active_id'))]" pyson="1"/>
        </record>
        <record model="ir.action.keyword" id="act_open_dengue_du_survey_keyword">
            <field name="keyword">form_relate</field>
            <field name="model">gnuhealth.du,-1</field>
            <field name="action" ref="act_dengue_du_survey_form"/>
        </record>

    </data>
</tryton>
