OpenERP uses JQuery DatePicker widget to select the dates. This post provides a overview of how you can control dates to be disabled in various ways. The datepicker, I think, is instantiated in the odoo/odoo/addons/web/static/src/js/view_form.js file (search for the start method of instance.web.DateTimeWidget). You can either change it from that file or override the start method of instance.web.DateTimeWidget.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/10/15, 1:06 AM|
|Seen: 462 times|
|Last updated: 3/16/15, 8:10 AM|