Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
23748 มุมมอง

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?

 

อวตาร
ละทิ้ง

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

คำตอบที่ดีที่สุด

Yes, Of course 

this is possible.

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

อวตาร
ละทิ้ง
ผู้เขียน

Thank you, It is working Well :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 25
4636
2
ธ.ค. 24
7779
How to ORDER BY? [Odoo 10] แก้ไขแล้ว
2
พ.ย. 24
28550
2
พ.ค. 24
7487
3
มี.ค. 24
6919