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

How to change field width on a form view?

By
Hesham ELMAHDY
on 1/11/15, 3:46 PM 3,347 views

Field with size 8 digits is very wide on form view. How to change / decrease field width on a form view?

2

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/12/15, 12:47 AM

In XML view, add style="width:40%%"

<field name="field1" style="width:40%%" />

0
Stefano Del Gobbo
On 9/18/15, 3:43 AM

Both works well if I need to extend field width:

<field name="field1" style="width:40%%" /> 

<field name="field1" width="40" />

But how to override minimum width?

This doesn't works, the filed doesn't appear shorter:

<field name="field1" style="width:20%%" />

<field name="field1" width="20" />

<field name="qty01" nolabel="1" style="min-width: 20px;"/>

The field is float.

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: 1/11/15, 3:46 PM
Seen: 3347 times
Last updated: 9/18/15, 3:44 AM