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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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">
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
févr. 16
|
3714 | ||
|
4
mai 23
|
10509 | ||
|
1
janv. 19
|
9594 | ||
|
0
oct. 17
|
3422 | ||
|
3
juil. 17
|
10534 |
can you paste part of the code ?