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.
See the alternative solution
# Outside the model
year_list = 
for i in range(2016, 2036):
# Inside the model
month = fields.Selection([(1, 'January'), (2, 'February'), (3, 'March'), (4, 'April'),
(5, 'May'), (6, 'June'), (7, 'July'), (8, 'August'),
(9, 'September'), (10, 'October'), (11, 'November'), (12, 'December'), ],
year = fields.Selection(get_years(), string='Year',)
<label for="month" string="Month"
style="font-weight: bold !important;margin-right:107px;margin-left: 0px;"/>
<field name="month" style="width:110px"/>
<field name="year" style="width:110px;margin-left: 34px;"/>
All the best !
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 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: 11/8/16, 10:46 PM|
|Seen: 216 times|
|Last updated: 11/26/16, 3:47 AM|