Odoo Help

0

Disable Dates after Today [Closed]

By
Varun Goel
on 10/29/13, 6:06 PM 1,950 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
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: 1950 times
Last updated: 3/16/15, 8:10 AM