Odoo Help

Welcome!

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.

0

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

By
Billiard R Made
on 12/7/14, 3:51 AM 923 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?

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

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

Bole
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?

Bole
on 12/9/14, 6:48 AM

try putting field inside of tags lieke:

.. i didn't try, but souold work...

Bole
on 12/9/14, 6:49 AM

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

Bole
on 12/9/14, 6:51 AM

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

1 follower(s)

Stats

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