Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to change the position of Field in the Form View (Parent) to the new Position (In my In herited view). Is there any way.
<record id="1" model="1">
<field name="arch" type="xml">
So I want to move the field Y to inside the group X. Not only field. Also I need to move the any other tags like <div> or <group> itself as bunch.
Is there any Xpath which is like below.
<xpath expr="//form/sheet/group/group/field[@name='email']" position="move">
There is no such value allowed like move in xpath. Values allowed are
inside (default): your values will be appended inside the tag
after: add the content after the tag
before: add the content before the tag
replace: replace the content of the tag.
You have to simply replace that field. and put it to new position. For more details, You can refer Doc or can ask me too.
<xpath expr="//group/field[@name='X']" position="replace"/>
This will remove field from that position. Now you can put it to other place you want. Suppose you want to place it after field "Y". Example -
<xpath expr="//group/field[@name='Y']" position="after">
This way, You can change postion of any field, group etc.
Hope this will help you.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/20/15, 5:49 AM|
|Seen: 7366 times|
|Last updated: 7/21/17, 9:04 AM|