Odoo Help

4

0
5 Answers
2
Avatar

Andreas Maertens Germany

--Andreas Maertens--
1037
| 6 6 9
Finsterwalde, Germany
--Andreas Maertens--

I develop odoo8.0 modules

Andreas Maertens Germany
6/6/13, 7:21 AM

Why don't u use one2many field or a selection and let them choose from a Dropdown list. This give the same functionality. Radiobuttons are not implemented so far as I know.

2 Comments
charlesraj India
6/6/13, 7:49 AM

ok i will use the selection instead of it.. Thanks for your answer....

Fransis L. Yoas Indonesia
7/9/13, 5:54 AM

can i use selection widget for many value..example: I need 21 values that fit in one selection..is it possible?because I have tried other widget llike one2many but it can't solve my problem..I only can do with selection

2

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.

1
Avatar

Francesco OpenCode Italy

--Francesco OpenCode--

3949
| 7 8 11
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo Developer. Python lover. Beer addicted.

LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode Italy
6/6/13, 7:26 AM

In OpenERP the radiobutton function is simuleted by a selection field. If you need to choose only one value in between some values you can use selection, if you want select more values there are booleans fields. Why you need radiobutton?

4 Comments
charlesraj India
6/6/13, 7:48 AM

ok i will use the selection insted of it .. Thanks for your reply..

Francesco OpenCode Italy
6/6/13, 7:56 AM

If this answer is the correct one, please set it as correct with the green circle near the answer text. So, you can help future user with the some problem

Andreas Maertens Germany
6/6/13, 11:06 AM

All Answers are correct. ;)

Fransis L. Yoas Indonesia
7/9/13, 5:49 AM

can i use selection widget for many value..example: I need 21 values that fit in one selection..is it possible?because I have tried other widget..it can't solve my problem..I only can do with selection

1
Avatar

Mohammad Alhashash Egypt

--Mohammad Alhashash--
2103
| 6 5 10
October City, Egypt
--Mohammad Alhashash--

Developer

Mohammad Alhashash Egypt
6/6/13, 8:21 AM

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 widget="radio" attribute.

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.

0
Mohammed Mansour Egypt
1/28/15, 2:22 AM

You can see this link where you can use it to make a radio button widget in openerp.

http://stackoverflow.com/questions/22612080/openerp-view-change-look-of-selection-field-aka-radio-button

if you want the module for free, kindly send your email to me at (engmohamans@gmail.com) .

 

 

 

Ask a Question
Writer
Keep Informed
1 follower(s)
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