Odoo Help


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.


Change field alignment(Vertical) in view

Michael Pol
on 3/20/15, 11:23 AM 1,047 views

I wan't to know whether it's possible to display fields vertically by using css or xml. Currently it displays field label and value in horizontal way. E.g.

Field String  |  Field Value

I want fields to be displayed in following way.

 Field String


Field Value

Field 1
Field 2
Field 3
Field 4
Field 5


I tired by putting multiple groups, it's little difficult to achieve above view using groups. Is there any easier way than groups? 

Could anybody help me displaying field string and value vertically as I explained above.



Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 3/21/15, 5:43 PM


You can use html and style inline and css...

So if you want a table like in your example...

You can write a table in xml view...


<table style='width:100%;' border='1'>
<th style='width:40%; font-weight:bold'><label for="name"/></th>
<th style='width:20%; font-weight:bold'><label for="is_company"/></th>
<th style='width:40%; font-weight:bold'><label for="category_id"/></th>
<td><field name="name" default_focus="1" placeholder="Name"/></td>
<td><field name="parent_id"/></td>
<td><field name="category_id" widget="many2many_tags" placeholder="Tags..."/></td>

Thanks Jeremy Kersten. I never thought about putting html tables in form view. It worked.

Michael Pol
on 3/23/15, 2:12 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

2 follower(s)


Asked: 3/20/15, 11:23 AM
Seen: 1047 times
Last updated: 3/21/15, 11:40 PM