Odoo Tips and Tricks

Jeevachaithanyan Sivanandan - Oct 9 '23 - - Dev Community

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"/>
            </xpath>
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player