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 show three fields on a single line with a single label in form view

By
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?

;)

0

It worked.

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

HTML tables are also allowed.

Thanks!

0

Ray Carnes

--Ray Carnes--
15677
| 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:

<group>
    <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%" />
    </div>
</group>

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

https://accounts.openerp.com/forum/Help-1/question/1490

It worked

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

HTML tables are also allowed.

Thanks!

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)

Stats

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