Odoo Help


<field name="field_name" width="field_width"/>

Billiard R Made
on 12/7/14, 3:51 AM 1,592 views

I am writing a very simple custom module.  I want the height of my fields and controls to be larger than normal.  When I google for help all I find is <field name="field_name" width="field_width"/>

I managed to change the field text size using the <span style=" font-size: 22pt;  height: 22.5pt;line-height: 25pt;margin: 0;padding: 0 0 -2.5pt 0;"/> My problem is that the control remains small, big text small control

How do I change this control height?




| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 12/8/14, 2:59 AM

Good example is in base/res/res_partner_view.xml ... 
copied form there... id="view_partner_form" ...
<field name="city" placeholder="City" style="width: 40%%" attrs="{'readonly': [('use_parent_address','=',True)]}"/>

Hope this does the trick you need

I doubt that will work. I want to control the HEIGHT of the control e.g the dropcombo

Billiard R Made
on 12/8/14, 3:03 AM

o realy? well.. could you read carefully the subject of this question? does it mention HEIGHT anywhere?

on 12/9/14, 6:48 AM

try putting field inside of tags lieke:

.. i didn't try, but souold work...
on 12/9/14, 6:49 AM

previous comment contains h tags... so i'l yust write it with spaces... '' '' ' '

on 12/9/14, 6:51 AM

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

1 follower(s)


Asked: 12/7/14, 3:51 AM
Seen: 1592 times
Last updated: 3/16/15, 8:10 AM