Odoo Help

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,980 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?

;)

1

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--
16599
| 9 7 9
Atlanta, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0.

Completed Odoo Functional and Technical Training.

Major Skills:

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

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. 

I am a skilled Communicator and I only take the serious things seriously!

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

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.

Register

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)

Stats

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