Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
1828 Näkymät

good afternoon to all, what is the view that has to be inherited to add a field in the detail of the invoice, model: account_invoice_line.

I am currently inheriting:

<field name = "model"> account.invoice </field>


<field name = "inherit_id" ref = "account.invoice_form" />

but the change is not reflected.

odoo12: release

 <record model="ir.ui.view" id="e.view_account_invoice_mobile">

            <field name="name">Cambios en al vista de mobile de Invoice</field>

            <field name="model">account.invoice</field>

            <field name="inherit_id" ref="account.invoice_form"/>

            <field name="arch" type="xml">

               <xpath expr="//kanban[@class='o_kanban_mobile']" position="replace">

            <kanban class="o_kanban_mobile">

    --code

</kanban>

</xpath>

       </field>

        </record>

Avatar
Hylkää

See inheritance in model and views: https://goo.gl/4Zyc9d

Tekijä

Something strange happens to me, I edit the view manually to verify if it is the correct view, and no changes are reflected either. Everything indicates that it is not the view that adds an item to the detail of the facura (in mobile mode)