تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3399 أدوات العرض

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>

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
12
ديسمبر 18
34705
1
يوليو 16
7020
1
مارس 15
7738
0
مارس 15
3835
1
مارس 15
3663