Odoo Help

0

what is the right way to define a selection field?

By
Abdullah Sofan
on 9/27/13, 10:39 PM 713 views

Is this correct:

'classroom_type': fields.selection('IT', 'ELP','BE'),
3
Acespritech
On 9/28/13, 3:46 AM

Hi,

You need to write like this:

'classroom_type' : fields.selection([
            ('it', 'IT'),
            ('elp','ELP'),
            ('be','BE')],'Type')

You can also refer Selection Field here.

Thanks,
www.acespritech.com

This works, thanks

Abdullah Sofan
on 9/28/13, 10:51 AM

Please close this question if the answer is correct. Thanks many.

Acespritech
on 9/30/13, 3:26 AM

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

Question tools

1 follower(s)

Stats

Asked: 9/27/13, 10:39 PM
Seen: 713 times
Last updated: 3/16/15, 8:10 AM