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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Yes, Of course
this is possible.
Just do like this : <field name="gender" widget='radio' options="{'horizontal': true}"/>
Thank you, It is working Well :)
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
lip 25
|
4199 | ||
|
2
gru 24
|
7444 | ||
How to ORDER BY? [Odoo 10]
Rozwiązane
|
|
2
lis 24
|
28127 | |
|
2
maj 24
|
7199 | ||
|
3
mar 24
|
6636 |
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