Odoo Help

2

Radio Button

By
Ajeng Shilvie
on 1/6/15, 6:16 AM 1,463 views

can i make horizontal selection using widget="radio"?

i am using radio button widget but always end up vertical data selection , can i make my selection by horizontal view ?

thanks in advance

Wiget "radio" is impemented as table rows :(

Zbik
on 1/6/15, 7:39 AM
0
Valentin Vega
On 2/14/17, 8:48 AM

Hi!.

You only have to add options parameter, as shown below.
<field name="address_type" widget='radio' options="{'horizontal': true}"/>

Btw, in my code y used address_type as a selection (fields.Selection)

See u later.

0
Nimesh
On 1/6/15, 6:27 AM

You can use groups tag

See example below.

   <group string="Administration">
       <field name="privacy_visibility" widget="radio"/>
   </group>
   <group string="Miscellaneous" name="misc">
   </group>

 

Thanks,

it is not what i mean ,, if i use these code it's result will be a vertical radio button .. i just want it to be a horizontal radio button..

Ajeng Shilvie
on 1/6/15, 6:56 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: 1/6/15, 6:16 AM
Seen: 1463 times
Last updated: 2/14/17, 8:48 AM