Odoo Help


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.


Disable Dates after Today [Closed]

Varun Goel
on 10/29/13, 6:06 PM 1,318 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

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

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

Question tools

0 follower(s)


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