diff --git a/web_widget_timepicker/readme/USAGE.rst b/web_widget_timepicker/readme/USAGE.rst
index a848ae29..d6e9b1ea 100644
--- a/web_widget_timepicker/readme/USAGE.rst
+++ b/web_widget_timepicker/readme/USAGE.rst
@@ -16,5 +16,3 @@ Additional bootstrap datetime-picker plugin options can be specified by an optio
...
...
-
-See the available options at `datetime-picker `_.
diff --git a/web_widget_timepicker/static/src/js/web_widget_timepicker.js b/web_widget_timepicker/static/src/js/web_widget_timepicker.js
index 791faf65..d5069004 100644
--- a/web_widget_timepicker/static/src/js/web_widget_timepicker.js
+++ b/web_widget_timepicker/static/src/js/web_widget_timepicker.js
@@ -25,7 +25,8 @@ odoo.define('web_widget_timepicker', function (require) {
setValue: function (value) {
this.set({'value': value});
- var formatted_value = value ? this._formatClient(value) : null;
+ var formatted_value = _.isNumber(value)
+ ? this._formatClient(value) : null;
this.$input.val(formatted_value);
if (this.picker) {
var fdate = new moment(formatted_value, this.options.format);
@@ -36,7 +37,7 @@ odoo.define('web_widget_timepicker', function (require) {
getValue: function () {
var value = this.get('value');
- return value ? this._formatClient(value) : null;
+ return _.isNumber(value) ? this._formatClient(value) : null;
},
changeDatetime: function () {