Odoo Help

Welcome!

This community 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.

0

what is the right way to define a selection field?

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

Is this correct:

'classroom_type': fields.selection('IT', 'ELP','BE'),
3

Acespritech

--Acespritech--
839
| 3 2 6
India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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