This question has been flagged
1 Reply
2591 Views

Is this correct:

'classroom_type': fields.selection('IT', 'ELP','BE'),
Avatar
Discard
Best Answer

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

Avatar
Discard
Author

This works, thanks

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