[FIX] web: use momentjs for default filter value

The format methods of the date/datetime type expect a momentjs date
so it can call its 'format' method. Since we were not giving it a
momentjs date, the call to 'format' was crashing.
This commit is contained in:
David Monjoie
2017-04-21 13:25:35 +02:00
parent c9c05e54e5
commit 2d251a6c28
@@ -232,7 +232,7 @@ ExtendedSearchProposition.DateTime = ExtendedSearchProposition.Field.extend({
_create_new_widget: function (name) {
this[name] = new (this._get_widget_class())(this);
return this[name].appendTo(this.$el).then((function () {
this[name].set_value(new Date());
this[name].set_value(moment(new Date()));
}).bind(this));
},
_get_widget_class: function () {