DEV Community

Jeevachaithanyan Sivanandan
Jeevachaithanyan Sivanandan

Posted on

Odoo Tips and Tricks

Tested and working on Odoo Version 16.

How to move an existing fields from one place to another in a form. In this quick tip, we are moving the field 'ref' from the misc position to Contact name field after.

Move ref field

The code to do this as below

 <xpath expr="//span[@name='address_name']" position="before" >
                <field string="Reference" name="ref" required ="1" readonly="True"/>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)