Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3394 Vizualizări

Hi, does anyone know why this extra filed does not appear, 

I have other <record> with extra field in the same xml file and that works fine.


        <record model="ir.ui.view" id="view_pos_pos_form_inherit">

            <field name="name">pos.order.inherit</field>

            <field name="model">pos.order</field>

            <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>

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

                <form string="Point of Sale Orders">

                    <sheet>

                        <xpath expr="//field[@name='session_id']" position="after">

                            <group col="4" colspan="4">

                                <field name="x_exp_date"/>

                            </group>

                         </xpath>

                    </sheet>

                </form>

            </field>

        </record>

Imagine profil
Abandonează
Cel mai bun răspuns

Hello Jakub,

You can try it by removing extra form and sheet elements like the below code.

<record model="ir.ui.view" id="view_pos_pos_form_inherit">
    <field name="name">pos.order.inherit</field>
    <field name="model">pos.order</field>
    <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
    <field name="arch" type="xml">
        <xpath expr="//field[@name='session_id']" position="after">
            <group col="4" colspan="4">
                <field name="x_exp_date"/>
            </group>
        </xpath>
    </field>
</record>


I hope this will resolve your query. Feel free to ask any query.


Thanks,

Aman Prakash,

Webkul Software Private Limited

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
12
dec. 18
34700
1
iul. 16
7019
1
mar. 15
7737
0
mar. 15
3834
1
mar. 15
3660