Odoo Help


How to show three fields on a single line with a single label in form view

Rui Franco
on 3/23/14, 3:11 PM 4,573 views

I'm building a form in order to insert GPS coords.

I'd like to be able to have a label for "Latitude" and, then, have three fields in a row (degrees, minutes, seconds). Instead, all I can do is to show a field in each row.

Anyone knows a solution?


Rui Franco
On 4/2/14, 5:34 AM

It worked.

For the record: one has to declare the form as 'version="7.0"'.

HTML tables are also allowed.


Ray Carnes
On 3/23/14, 5:01 PM

You need to use <div> and <group> tags.

Take a look at the way the Partner form view works.

Hijacking the pre-defined CSS div class address_format you can have something like:

    <label for="degrees" string="Latitude" />
    <div class="address_format">
         <field name="degrees" style="width: 33%" />
         <field name="minutes" style="width: 33%" />
         <field name="seconds" style="width: 33%" />

You should also educate yourself about the <col> and <colspan> attributes.


It worked

For the record: one has to classifiy the form as 'version="7.0"'.

HTML tables are also allowed.


Rui Franco
on 4/2/14, 5:34 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: 3/23/14, 3:11 PM
Seen: 4573 times
Last updated: 5/27/16, 5:20 PM