Skip to Content
Menu
This question has been flagged
2 Replies
32851 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?

;)

Avatar
Discard

It worked.

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

HTML tables are also allowed.

Thanks!

Best Answer

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

Avatar
Discard
Author

It worked

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

HTML tables are also allowed.

Thanks!

Best Answer

I used my own css to display 3 fields with one singe label. try it!

Avatar
Discard