|
|
@ -10,12 +10,11 @@ var rpc = require('web.rpc'); |
|
|
|
var framework = require('web.framework'); |
|
|
|
|
|
|
|
var _t = core._t; |
|
|
|
var _lt = core._lt; |
|
|
|
filters.ExtendedSearchProposition.include({ |
|
|
|
select_field: function(field) { |
|
|
|
this._super.apply(this, arguments); |
|
|
|
this.is_date_range_selected = false; |
|
|
|
this.is_date = field.type == 'date' || field.type == 'datetime'; |
|
|
|
this.is_date = field.type === 'date' || field.type === 'datetime'; |
|
|
|
this.$value = this.$el.find('.searchview_extended_prop_value, .o_searchview_extended_prop_value'); |
|
|
|
if (this.is_date){ |
|
|
|
var ds = new data.DataSetSearch(this, 'date.range.type', this.context, [[1, '=', 1]]); |
|
|
|