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.


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

Odooveloper (by Rui Franco)
on 3/23/14, 3:11 PM 2,366 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?



It worked.

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

HTML tables are also allowed.



Ray Carnes

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

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.


Odooveloper (by Rui Franco)
on 4/2/14, 5:34 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)


Asked: 3/23/14, 3:11 PM
Seen: 2366 times
Last updated: 5/27/16, 5:20 PM