Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
23782 Visualizações

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
Cancelar

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

Melhor resposta

Yes, Of course 

this is possible.

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

Avatar
Cancelar
Autor

Thank you, It is working Well :)

Publicações relacionadas Respostas Visualizações Atividade
2
jul. 25
4669
2
dez. 24
7794
2
nov. 24
28572
2
mai. 24
7513
3
mar. 24
6932