Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1812 Lượt xem

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>

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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)