comprobante.xml 2.1 KB
<odoo>
    <data>
        <record id="view_form_inherit_comprobante_recibido_ui" model="ir.ui.view">
            <field name="name">Comprobante</field>
            <field name="model">asw.comprobante</field>
            <field name="inherit_id" ref="asw_tpv.view_form_comprobante_recibido_ui"/>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="//group[1]" position="after">
                        <group string="Referencias" col="4" attrs="{'invisible': [('comp_tal_menu', '!=', 'fac')]}">
                            <field name="referencia_corr" nolabel="1" widget="many2many_tags" />
                        </group>
                    </xpath>
                </data>
            </field>
        </record>

        <record id="view_form_inherit_comprobante_ui" model="ir.ui.view">
            <field name="name">Comprobante</field>
            <field name="model">asw.comprobante</field>
            <field name="inherit_id" ref="asw_tpv.view_form_comprobante_ui"/>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="//group[1]" position="after">
                        <group string="Referencias" col="4"  attrs="{'invisible': [('comp_tal_menu', '!=', 'fac')]}">
                            <field name="referencia_corr" nolabel="1" widget="many2many_tags"  />
                        </group>
                    </xpath>
                </data>
            </field>
        </record>

         <record id="view_form_inherit_comprobante_afip_ui" model="ir.ui.view">
            <field name="name">Comprobante</field>
            <field name="model">asw.comprobante</field>
            <field name="inherit_id" ref="asw_afipws_fe.view_invoice_afipws_fe_form"/>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="//field[@name='afip_xml_response']" position="after">
                        <field name="afip_qr" />
                        <field name="afip_qr_img" widget="image"/>
                    </xpath>
                </data>
            </field>
        </record>

    </data>
</odoo>