跳至内容
菜单
此问题已终结
1 回复
3367 查看

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
12月 18
34648
1
7月 16
6985
1
3月 15
7700
0
3月 15
3808
1
3月 15
3644