comprobante.xml 2.89 KB
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <data noupdate="0">
    
    <record id="asw_fechas_action" model="ir.actions.act_window">
        <field name="type">ir.actions.act_window</field>
        <field name="name">Comprobante fechas</field>
        <field name="res_model">asw.comprobante</field>
        <field name="view_mode">tree,form</field>
        <field name="view_type">form</field>
        <field name="target">current</field>
        <field name="view_id" ref="view_comprobante_fechas_form_inherited"/>
    </record>

    <record id="asw_fechas_recibido_action" model="ir.actions.act_window">
        <field name="type">ir.actions.act_window</field>
        <field name="name">Comprobante fechas</field>
        <field name="res_model">asw.comprobante</field>
        <field name="view_mode">tree,form</field>
        <field name="view_type">form</field>
        <field name="target">current</field>
        <field name="view_id" ref="view_comprobante_recibido_fechas_form_inherited"/>
    </record>

    <!-- primary|extension Inherited .:Form:. view for "model" -->
    <record id="view_comprobante_fechas_form_inherited" model="ir.ui.view">
        <field name="name">view.model.form inherited</field>
        <field name="model">asw.comprobante</field>
        <!-- Please veryfiy, that the following inherited view really sticks to the naming convention. -->
        <field name="inherit_id" ref="asw_tpv.view_form_comprobante_ui" />
        <field name="type">form</field>
        <field name="mode">extension</field>
        <field name="priority" eval="16" />
        <field name="active" eval="True" />
        <field name="arch" type="xml">
            
            <xpath expr="//form/group[1]" position="after">

                <group string="Fechas" col="4">
                    <field name="fecha_vencimiento_fact"/>
                    <field name="dias_a_vencer"/>
                </group>

            </xpath>
            
        </field>
    </record>

       <record id="view_comprobante_recibido_fechas_form_inherited" model="ir.ui.view">
        <field name="name">view_form_comprobante_recibido_ui</field>
        <field name="model">asw.comprobante</field>
        <!-- Please veryfiy, that the following inherited view really sticks to the naming convention. -->
        <field name="inherit_id" ref="asw_tpv.view_form_comprobante_recibido_ui" />
        <field name="type">form</field>
        <field name="mode">extension</field>
        <field name="priority" eval="16" />
        <field name="active" eval="True" />
        <field name="arch" type="xml">
            
            <xpath expr="//form/group[1]" position="after">

                <group string="Fechas" col="4">
                    <field name="fecha_vencimiento_fact"/>
                    <field name="dias_a_vencer"/>
                </group>

            </xpath>
            
        </field>
    </record>
        
    </data>
</odoo>