Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
but in the first case in the form displays a dropdown list.
The line on the xml view is given below.
and also try this <field name="rd" widget="radio"/>
please give suggestion to me..
There is no radio button widget in v7, but you can add it using widget="radio" attribute.
First you create your own widget [like selection widget] then add python code: 'syllabus': fields.selection([('state','State'),('cbse','CBSE')],'Syllabus'), and add XML code: <field name="syllabus" widget="radio"/>
The radio widget is available in trunk branch.
There is no radio button widget in v7, only drop down widget for both selection and many2one fields. However, in v8, there will be a new radio button widget that can be used in view using
The new radio widget is available now in trunk branch but there is no estimated release date yet for v8. I think it will be somewhere in 2014.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/6/13, 6:46 AM|
|Seen: 5241 times|
|Last updated: 3/16/15, 8:10 AM|