openerp - Please how to set fix size of box in form view odoo 8 -


how can fix size of box in form view on 0doo 8

in `xmlù group :

<field name="taxe"/> 

in py file :

'taxe' : fields.selection([('17','17 %'),('12','12 %'),('10','10 %')],'taxe etablissement'), 

enter image description here

you can use attribute style on xml field definition, example:

<field name="field_x" style="width:50%%" /> 

or

<field name="field_y" style="width:100px" /> 

percentage use space given parent element. if uses 2 columns layout (typical odoo groups) 50% use 25% of full width. don't forget escape '%'.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -