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

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>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
12
thg 12 18
34653
1
thg 7 16
6986
1
thg 3 15
7704
0
thg 3 15
3808
1
thg 3 15
3644