Odoo Help

0

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

By
Rui Franco
on 3/23/14, 3:11 PM 4,022 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
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.

Thanks!

0
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!

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: 4022 times
Last updated: 5/27/16, 5:20 PM