コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
5599 ビュー

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">

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 16
3720
4
5月 23
10513
1
1月 19
9600
0
10月 17
3424
3
7月 17
10544