コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
23778 ビュー

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 :)

関連投稿 返信 ビュー 活動
2
7月 25
4665
2
12月 24
7793
2
11月 24
28567
2
5月 24
7507
3
3月 24
6929