Odoo Help


Disable Dates after Today [Closed]

Varun Goel
on 10/29/13, 6:06 PM 2,126 views

The Question has been closed

Ray Carnes
on 10/30/2013 12:40:05


I need date picker to have disabled dates in datepicker (after today's date). e.g. in case of date of birth, the user should not be able to enter future dates.

Please let me know how I can do this in OpenERP.

Ray Carnes
On 10/29/13, 6:19 PM

See https://accounts.openerp.com/forum/Help-1/question/9308


You need to specify the field you are setting to False in the return function.

Change the second last line from:

return False


return { 'value': { 'name_of_the_date_field_you_restrict': False } }

I have already viewed this and although the event is called, the chosen value is still applied to the date textbox.

Varun Goel
on 10/29/13, 6:21 PM

See my edit

Bista Solutions US, Ray Carnes
on 10/29/13, 10:54 PM

Thanks...it worked... :)

Varun Goel
on 10/30/13, 1:35 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.


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

0 follower(s)


Asked: 10/29/13, 6:06 PM
Seen: 2126 times
Last updated: 3/16/15, 8:10 AM