diff --git a/web_widget_datepicker_options/static/src/js/datepicker.js b/web_widget_datepicker_options/static/src/js/datepicker.js index 6dc20939..c9b145ae 100644 --- a/web_widget_datepicker_options/static/src/js/datepicker.js +++ b/web_widget_datepicker_options/static/src/js/datepicker.js @@ -43,15 +43,13 @@ odoo.define('web_widget_datepicker_options', function (require) { }); DateWidget.include({ - start: function(parent, options) { + init: function(parent, options) { this._super.apply(this, arguments); var self = this; if (this.__parentedParent.options.datepicker) { var options = this.__parentedParent.options.datepicker; $.each(options, function(value, key) { self.options[value] = key; - self.picker[value] = key; - self.picker.options[value] = key; }); } },