salones.xml 1.46 KB
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data noupdate="0">
        
        <!-- actions opening views on models -->
        
        <record model="ir.actions.act_window" id="hgt_salones_action_window">
            <field name="name">Salones</field>
            <field name="res_model">hgt.salones</field>
            <field name="view_mode">tree,form</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">Cree el primer Salón</p>
            </field>
        </record>

        <record model="ir.ui.view" id="hgt_salones_list">
            <field name="name">Salones</field>
            <field name="model">hgt.salones</field>
            <field name="arch" type="xml">
                <tree>
                <field name="nombre"/>
                <field name="codigo"/>
                </tree>
            </field>
        </record>

        <record model="ir.ui.view" id="hgt_salones_form">
            <field name="name">Salones</field>
            <field name="model">hgt.salones</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <group col="4" string="Datos del Salón">
                            <field colspan="2" name="nombre"/>
                            <field colspan="2" name="codigo"/>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
        
    </data>
</odoo>