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

        <record id="action_hgt_compra_orden_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Órden de Compra</field>
            <field name="res_model">hgt.compra_orden</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">Cree la primera orden de compra</p>
            </field>
        </record>
        
        <record id="view_hgt_compra_orden_tree" model="ir.ui.view">
            <field name="name">Órden de Compra</field>
            <field name="model">hgt.compra_orden</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="cor_comprador" />
                    <field name="cor_estados" />
                </tree>                
            </field>
        </record>

        <record id="view_hgt_compra_orden_form" model="ir.ui.view">
            <field name="name">Órden de Compra</field>
            <field name="model">hgt.compra_orden</field>
            <field name="type">form</field>
            <field name="mode">primary</field>
            <field name="priority" eval="16" />
            <field name="active" eval="True" />
            <field name="arch" type="xml">
                <form> 
                    <header>
                        <field name="cor_estados" widget="statusbar"/>
                    </header>
                    <group string="Órden de Compra" col="2">
                        <field colspan="1" name="cor_comprador" />
                    </group>
                </form>                
            </field>
        </record>
        
    </data>
</odoo>