Odoo Help

0

Disable Dates after Today [Closed]

By
Varun Goel
on 10/29/13, 6:06 PM 1,859 views

The Question has been closed

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

Hello,

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.

0

Ray Carnes

--Ray Carnes--
17320
| 9 7 9
Atlanta, United States
--Ray Carnes--

Senior Odoo Analyst

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

Completed Odoo Functional and Technical Training.

Major Skills:

  • 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

EDIT:

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

Change the second last line from:

return False

to:

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.

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

0 follower(s)

Stats

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