Odoo : move a field using xpath

Jeevachaithanyan Sivanandan - Jan 2 - - Dev Community

If you are working in Odoo, often you will have the situation to move fields from one place to other.

here is the quick snippet to do it

<xpath expr="//field[@name='targetfield']" position="before">
                    <field name="the_field_to_be_moved"
                           position="move"/>
               </xpath>
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player