Odoo Help

Welcome!

This community 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.

0

How to display selection only year [Closed]

By
Susi
on 4/27/16, 11:57 PM 200 views

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

by
Susi
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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