Odoo Help


Disable Dates after Today [Closed]

Varun Goel
on 10/29/13, 6:06 PM 2,488 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
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

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. 

I am a skilled Communicator and I only take the serious things seriously!

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

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: 2488 times
Last updated: 3/16/15, 8:10 AM