openerp

Disable previous dates in Odoo datepicker

旧巷老猫 提交于 2020-12-08 03:25:22
问题 I want to restrict the user selecting previous date from the date picker of odoo-8. Please give me how to disable previous dates in odoo datepicker 回答1: There's a module for that https://apps.openerp.com/apps/modules/8.0/web_widget_datepicker_options/ If you have a date field named current_date <field name="current_date" /> After installing the module, just add the option for the jquery datepicker minDate and set it to 0 like this <field name="current_date" options="{'datepicker':{'minDate':