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 customize year range in date field?

By
Atchuthan
on 5/10/13, 3:16 AM 1,161 views
Hi guyz,

Firstly, when a date field is set, for ex:
    'date': fields.date('Date'),

The years displayed are normally 2003 - 2023 as the current year is 2013 i.e. +/-10 years in the selection box for years. 
But normally when we see any site for date of birth, they provide year range from 1970 -2013(i.e. present).

Is there any way to make the range bigger.
1

Vasiliy Birukov

--Vasiliy Birukov--
3446
| 6 6 8
Russian Federation
--Vasiliy Birukov--

Help develop and implement any project on base Odoo.

Vasiliy Birukov
On 5/10/13, 5:45 AM

Choose 2003 and then range shift to 1993. And step by step you go to 1920. The same in other direction. Or just write it by hand.

there is no range before 2003, so how can i get 1920 selected. tell me how to customize the range.

Atchuthan
on 5/10/13, 7:13 AM

I need customization of date field through code.

Atchuthan
on 5/15/13, 10:33 AM

Your Answer

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

Question tools

1 follower(s)

Stats

Asked: 5/10/13, 3:16 AM
Seen: 1161 times
Last updated: 8/3/15, 2:34 AM