跳至内容
菜单
此问题已终结
2 回复
32893 查看

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.

Thanks!

最佳答案

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!

最佳答案

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

形象
丢弃