Hi,
I have a selection fielld
my_field = fields.Selection([('foo', 'foooooooo'), ('bar', 'baaaaaaaar')], default='foo')
<field name="my_field" widget="radio" string=" "/>
My result is 
But I need this
is this possible?
 
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
Hi,
I have a selection fielld
my_field = fields.Selection([('foo', 'foooooooo'), ('bar', 'baaaaaaaar')], default='foo')
<field name="my_field" widget="radio" string=" "/>
My result is 
But I need this
is this possible?
 
Yes, Of course
this is possible.
Just do like this : <field name="gender" widget='radio' options="{'horizontal': true}"/>
Thank you, It is working Well :)
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|  | 2 jul 25  | 6057 | ||
|  | 2 oct 25  | 8599 | ||
| 
            
                How to ORDER BY? [Odoo 10]
            
            
                    Resuelto
            
         |  | 2 nov 24  | 29454 | |
|  | 2 may 24  | 8242 | ||
|  | 3 mar 24  | 7632 | 
You can show one2many records in radio button by converting one2many into selection field: http://learnopenerp.blogspot.com/2020/05/show-one2many-field-records-as-radio-button-in-odoo-wizard.html