Odoo Help

0

how to customize year range in date field?

By
Atchuthan
on 5/10/13, 3:16 AM 1,386 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--
3491
| 7 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

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

Question tools

1 follower(s)

Stats

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