Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
23763 Visninger

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
Kassér

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

Bedste svar

Yes, Of course 

this is possible.

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

Avatar
Kassér
Forfatter

Thank you, It is working Well :)

Related Posts Besvarelser Visninger Aktivitet
2
jul. 25
4656
2
dec. 24
7787
2
nov. 24
28563
2
maj 24
7502
3
mar. 24
6924