Skip to Content
Menu
This question has been flagged
3 Replies
23747 Zobrazenia

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
Zrušiť

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
Zrušiť
Autor

Thank you, It is working Well :)

Related Posts Replies Zobrazenia Aktivita
2
júl 25
4635
2
dec 24
7778
2
nov 24
28549
2
máj 24
7486
3
mar 24
6919