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 have been battling about with some selection fields and can't get them to work. Whenever I add them to my views it gives me XML erorr. So something must be wrong.
Does anybody has a guide for this?
Note with the new api you define a Selection field as follows:
from openerp import api, models, fields
_name = 'your.model'
my_selection_field = fields.Selection([('option1', 'Label 1'), ('option2', 'Label 2')], string='My Selection Field')
Using the new style gives the benefit of being able to extend the selection list by inheriting and redefining as follows:
my_selection_field = fields.Selection(selection_add=[('option3', 'Label 3')])
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: 9/3/14, 3:18 AM|
|Seen: 983 times|
|Last updated: 4/9/15, 2:50 AM|