Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
5596 มุมมอง

I am developing a module which adds fields to stock picking view.

However, fields appear outside the fields/sheet frame.

Any ideas on why this could be happening? Thanks


อวตาร
ละทิ้ง

can you paste part of the code ?

คำตอบที่ดีที่สุด

Hello EM,

Please Try this. In this code, field will appear after the Source document(Origin).


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

    <field name="name">stock.picking.form.view.inherit</field>

    <field name="model">stock.picking</field>

    <field name="inherit_id" ref="stock.view_picking_form"/>

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

        <xpath expr="/form/sheet/group/group/field[@name='origin']" position="after">

            <field name="custom_field"/>

        </xpath>

    </field>

</record>


Hope this will helps you.

Thanks,


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

It was actually a mistake I made in the xpath expression.

It is as easy as always:    

<xpath expr="//group[@string='Locations']" position="before">

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 16
3717
4
พ.ค. 23
10509
1
ม.ค. 19
9595
0
ต.ค. 17
3423
3
ก.ค. 17
10538