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.
python function that creates automatically a dropdown year selector (that is a "select" element poulated with all years starting from current and dating back to a given year)?
I don't need day/month (otherwise i'd have used the datepicker), i just need the year!
Thanks in advance
I don't know of any functionality, but it should be easily built using a fields.selection and using a method to fill in the options.
Alternatively, if you are going to use this in the context of fiscal years, you can always access the corresponding object (account.fiscalyear) and display it using a selection widget.
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: 12/10/14, 6:48 AM|
|Seen: 924 times|
|Last updated: 3/16/15, 8:10 AM|