Odoo Help

0

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

By
toni
on 8/7/13, 9:35 AM 5,567 views

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

2
Narendran
On 6/3/16, 7:19 AM

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

0
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"/>

        <xpath
           expr="//field[@name='fieldbefore']"
           position="after">
           <field name="myfield" width="200"/>
        </xpath>

    </data>

</field>

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

Question tools

0 follower(s)

Stats

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