Odoo Help


Changing label (or any other elements width?)

Tomas Parnarauskas
on 7/19/13, 6:17 AM 3,186 views

Hello, I don't seem to be able to change labels width, which takes half of line in view (but label name it self is short). I tried to use:

<label for="my_field" style="width: 30%%"/>

But that didn't change anything. Thats how it looks now: image description

As you can see label takes half of the line.

my part of view for this field looks like this:

                    <group string="Some string" name="some_name">
                        <label for="my_field" />
                        <field name="my_field" class="oe_inline" />
                        <field name="my_boolean_field" class="oe_inline"/>
                        <field name="my_other_field"
                            placeholder="Some text"
                            attrs="{'invisible': [('my_boolean_field','=',False)]}"
                    <group name="name1"></group>
                    <group name="name2"></group>

There are no other 'group' elements that would be parents of these group elements. Then how to change this that label would not take half of line, but instead would take similar to its size and 'my_field' would take all free line space, so that it would look like label for example would take 30% of line and 'my_field' itself 65% and 'my_boolean_field' 5%. I didn't find how to change width so flexibly.

Have you found a solution?

on 10/25/13, 12:27 PM

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.


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)


Asked: 7/19/13, 6:17 AM
Seen: 3186 times
Last updated: 5/31/17, 7:48 AM