Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
23759 Lượt xem

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?

 

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

Yes, Of course 

this is possible.

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you, It is working Well :)

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
4654
2
thg 12 24
7787
2
thg 11 24
28563
2
thg 5 24
7502
3
thg 3 24
6922