Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
23059 Vistas

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?

 

Avatar
Descartar

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

Mejor respuesta

Yes, Of course 

this is possible.

Just do like this : <field name="gender" widget='radio' options="{'horizontal': true}"/>

Avatar
Descartar
Autor

Thank you, It is working Well :)

Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 24
6880
2
nov 24
27242
2
may 24
6661
3
mar 24
6011
0
mar 24
1024