diff options
| author | Harpritsinh Sisodiya <hsi@odoo.com> | 2020-05-15 14:29:17 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-07-28 14:02:10 +0000 |
| commit | 6aa6c321a6cfc08e5490781c4fc7ee62beeebb15 (patch) | |
| tree | b7a47b11ca4bdbdc148db850a9536c0bc78a2bec /addons/website_form | |
| parent | 684b628c5acc298af83791fbaf8da0b774140425 (diff) | |
[IMP] web: remove min date limitation of year 1900
Before this commit, user could not selecta a date before year 1900.
This was an historical limitation due to python < 3.2 that didn't
support dates before 1900.
After this commit, user can select any date, user can select any
date from 01/01/0001.
taskID: 2166761
Fixes #41788
Closes #43055
closes odoo/odoo#51406
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Co-authored-by: Mohammed Shekha <msh@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
Diffstat (limited to 'addons/website_form')
| -rw-r--r-- | addons/website_form/static/src/snippets/s_website_form/000.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_form/static/src/snippets/s_website_form/000.js b/addons/website_form/static/src/snippets/s_website_form/000.js index b71ee1a7d44..b2f0f3370b4 100644 --- a/addons/website_form/static/src/snippets/s_website_form/000.js +++ b/addons/website_form/static/src/snippets/s_website_form/000.js @@ -37,7 +37,7 @@ odoo.define('website_form.s_website_form', function (require) { // Initialize datetimepickers var datepickers_options = { - minDate: moment({y: 1900}), + minDate: moment({ y: 1 }), maxDate: moment({y: 9999, M: 11, d: 31}), calendarWeeks: true, icons: { |
