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

        <record id="action_vnt_cobros_act_window" model="ir.actions.act_window">
            <field name="type">ir.actions.act_window</field>
            <field name="name">Cobros</field>
            <field name="res_model">vnt.cobros</field>
            <field name="view_mode">tree,form</field>
            <field name="view_type">form</field>
            <field name="target">current</field>
        </record>
        
        <record id="view_vnt_cobros_tree" model="ir.ui.view">
            <field name="name">Cobros</field>
            <field name="model">vnt.cobros</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="co_cliente" />
                    <field name="co_total_deuda" />
                    <field name="co_total_interes" />
                    <field name="co_total" />
                </tree>                
            </field>
        </record>

        <record id="view_vnt_cobros_form" model="ir.ui.view">
            <field name="name">Cobros</field>
            <field name="model">vnt.cobros</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> 
                    <!--<sheet>-->
                        <group col="2" string="Cliente y resumen">
                          <field colspan="1" nolabel="1" name="co_cliente" />
                          <div colspan="1"></div>
                          <field colspan="1" nolabel="1"  name="co_resumen" />
                        </group>
                        <notebook colspan="4">
                        <page string="Deudas">
                          <field nolabel="1" name="co_lin_deuda">
                            <tree create="1" edit="1" editable="1">
                                <field name="ld_factura" />
                                <field name="ld_fecha_vto"/>
                                <field name="ld_estado"/>
                                <field name="ld_total"/>
                                <!-- <field name="ld_fecha_vto" editable="0" readonly="1" />
                                <field name="ld_estado" editable="0" readonly="1" />
                                <field name="ld_total" readonly="1" /> -->
                                <field name="ld_select"/>
                            </tree>
                          </field>
                        </page>
                        </notebook>
                        <group name='total' class="oe_subtotal_footer oe_right">
                          <field name="co_total_deuda"  readonly="1" />
                          <field name="co_total_interes"  readonly="1" />
                          <field name="co_total"  readonly="1" />
                        </group>
                                  
                    <!--</sheet>-->
                </form>                
            </field>
        </record>
        
    </data>
</odoo>