Skip to Content
Menú
This question has been flagged
3 Respostes
23771 Vistes

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

Best Answer

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 :)

Related Posts Respostes Vistes Activitat
2
de jul. 25
4660
2
de des. 24
7789
2
de nov. 24
28567
2
de maig 24
7505
3
de març 24
6926