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

        <record id="action_maestro_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Maestro de Liquidaciones</field>
            <field name="res_model">hgt.masterliquidaciones</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>

        <record id="view_maestro_tree" model="ir.ui.view">
            <field name="name">>Maestro de Liquidaciones</field>
            <field name="model">hgt.masterliquidaciones</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="titulo" />
                    <field name="desde" />
                    <field name="hasta" />
                </tree>
            </field>
        </record>

        <record id="view_maestro_form" model="ir.ui.view">
            <field name="name">>Maestro de Liquidaciones</field>
            <field name="model">hgt.masterliquidaciones</field>
            <field name="type">form</field>
            
            <field name="arch" type="xml">
                <form>
                    <group col="2">
                        <field colspan="2" name="titulo" />
                    </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" />
                    </group>
                    <group col="2" string="Liquidaciones">
                        <field colspan="2" nolabel="1" name="liquidaciones" />
                    </group>

                </form>
            </field>
        </record> 

        <record id="view_maestro_search" model="ir.ui.view">
            <field name="name">Maestro de Liquidaciones</field>
            <field name="model">hgt.masterliquidaciones</field>
            <field name="arch" type="xml">
                <search>
                    <field name="titulo" />
                    <field name="desde" />
                    <field name="hasta" />
                </search>
            </field>
        </record>
        

    </data>
</odoo>