Se rendre au contenu
Menu
Cette question a été signalée
3 Réponses
23752 Vues

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
Ignorer

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

Meilleure réponse

Yes, Of course 

this is possible.

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

Avatar
Ignorer
Auteur

Thank you, It is working Well :)

Publications associées Réponses Vues Activité
2
juil. 25
4638
2
déc. 24
7781
2
nov. 24
28552
2
mai 24
7493
3
mars 24
6920