vista_tipocargo.xml 2.53 KB
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data noupdate="0">

        <record id="action_tipocargo_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Tipo de Cargo</field>
            <field name="res_model">hgt.tipo_cargo</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>

        <record id="view_tipocargo_tree" model="ir.ui.view">
            <field name="name">>Tipo de Cargo</field>
            <field name="model">hgt.tipo_cargo</field>
            <field name="type">tree</field>
            <field name="mode">primary</field>
            <field name="priority" eval="16" />
            <field name="active" eval="True" />
        
            <field name="arch" type="xml">
                <tree>
                    <field name="tipo" />
                    <field name="monto" />
                    <field name="desde" />
                    <field name="hasta" />
                </tree>
            </field>
        </record>

        <record id="view_tipocargo_form" model="ir.ui.view">
            <field name="name">>Tipo de Cargo</field>
            <field name="model">hgt.tipo_cargo</field>
            <field name="type">form</field>
            
            <field name="arch" type="xml">
                <form>
                    <group col="4">
                        <field colspan="2" name="tipo" />
                        <field colspan="2" name="monto" />
                    </group>
                    <group col="4">
                        <field colspan="2" name="desde" />
                        <field colspan="2" name="hasta" />
                    </group>
                    <group col="2" string="Ejecutores">
                        <field colspan="2" nolabel="1" name="ejecutores" widget="many2many_tags"/>
                    </group>
                
                </form>
            </field>
        </record> 

        <record id="view_tipocargo_search" model="ir.ui.view">
            <field name="name">Tipo de Cargo</field>
            <field name="model">hgt.tipo_cargo</field>
            <field name="arch" type="xml">
                <search>
                    <field name="tipo" />
                    <field name="monto" />
                    <field name="desde" />
                    <field name="hasta" />
                </search>
            </field>
        </record>
        

    </data>
</odoo>