Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
1832 Visninger

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
Kassér

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

Forfatter

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)