Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
5657 Zobrazení

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


Avatar
Zrušit

can you paste part of the code ?

Nejlepší odpověď

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,


Avatar
Zrušit
Autor Nejlepší odpověď

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

It is as easy as always:    

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 16
3763
4
kvě 23
10540
1
led 19
9645
0
říj 17
3467
3
čvc 17
10596