i created a module in openerp it have textbox, dropdown list etc for adding the student details. so iwant to add a radio button field to that form.
i just add the following line in python code.
'rd':fields.radio([('state','State'),('cbse','CBSE')],'Syllabus',required=True), 'rd':fields.radiobutton([('state','State'),('cbse','CBSE')],'Syllabus',required=True),
but in the first case in the form displays a dropdown list.
The line on the xml view is given below.
<field name="rd"/>
and also try this <field name="rd" widget="radio"/>
please give suggestion to me..
Add radio button in one2many field: http://learnopenerp.blogspot.com/2020/05/show-one2many-field-records-as-radio-button-in-odoo-wizard.html