Odoo Help


How to display selection only year [Closed]

on 4/27/16, 11:57 PM 461 views

The Question has been closed for reason: contains offensive or malicious remarks

on 04/29/2016 06:07:40


I want to display field selection only years. how to code field function with type selection years?. i have use this code. but i dont know how to code in value of selection.

year = time.strftime('%Y',time.strptime(datetime, "%Y"))

'year': fields.function(_get_year, type='selection', selection=[('??????????')], string='Years'),

thanks before

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/27/16, 11:57 PM
Seen: 461 times
Last updated: 4/29/16, 6:07 AM