Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
1835 Weergaven

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
Annuleer

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

Auteur

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)