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.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
dic 24
|
6880 | ||
How to ORDER BY? [Odoo 10]
Resuelto
|
|
2
nov 24
|
27242 | |
|
2
may 24
|
6661 | ||
|
3
mar 24
|
6011 | ||
|
0
mar 24
|
1024 |
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