can i make horizontal selection using widget="radio"?
i am using radio button widget but always end up vertical data selection , can i make my selection by horizontal view ?
thanks in advance
can i make horizontal selection using widget="radio"?
i am using radio button widget but always end up vertical data selection , can i make my selection by horizontal view ?
thanks in advance
Hi!.
You only have to add options parameter, as shown below.
<field name="address_type" widget='radio' options="{'horizontal': true}"/>
Btw, in my code y used address_type as a selection (fields.Selection)
See u later.
You can use groups tag
See example below.
<group string="Administration">
<field name="privacy_visibility" widget="radio"/>
</group>
<group string="Miscellaneous" name="misc">
</group>
Thanks,
it is not what i mean ,, if i use these code it's result will be a vertical radio button .. i just want it to be a horizontal radio button..
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Wiget "radio" is impemented as table rows :(
An idea to show radio button for one2many field: http://learnopenerp.blogspot.com/2020/05/show-one2many-field-records-as-radio-button-in-odoo-wizard.html