Odoo Help


This community 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.


How I can change the size and position of the fields in a form?

on 8/7/13, 9:35 AM 4,135 views

How I can change the size and position of the fields in a form? Thanks.

On 6/3/16, 7:19 AM

<field name="your_field" style="width:16%" />

Thomas Soumarmon
On 8/7/13, 10:15 AM

Hi Toni,

move fields : You can create an inherited view that removes former fields and then add modified fields to the new position

resize fields : You may use width attribute of the fields to set size.

e.g. : <record model="ir.ui.view" id="some_inherited_view"> <field name="name">some.inherited.view</field> <field name="type">form</field> <field name="model">some.model.with.one2many</field> <field name="inherit_id" ref="core_module.some_view"/> <field name="arch" type="xml"> <data> <xpath expr="//field[@name='myfield']" position="replace"/>

           <field name="myfield" width="200"/>



Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 8/7/13, 9:35 AM
Seen: 4135 times
Last updated: 6/3/16, 8:17 AM