[FIX] web: restore access to minDate/maxDate functions on the DateWidget

Used in Enterprise (sale_subscription_dashboard).
Solve a traceback as reported on BS4 pad
This commit is contained in:
Pierre Paridans
2018-08-29 10:02:52 +02:00
parent 3e52413aa5
commit 118526e0a8
@@ -128,6 +128,22 @@ var DateWidget = Widget.extend({
}
}
},
/**
* @returns {Moment|false} value
*/
maxDate: function (date) {
this.__libInput = true;
this.$input.datetimepicker('maxDate', date || null);
this.__libInput = false;
},
/**
* @returns {Moment|false} value
*/
minDate: function (date) {
this.__libInput = true;
this.$input.datetimepicker('minDate', date || null);
this.__libInput = false;
},
/**
* @param {Moment|false} value
*/