[FIX] web_calendar: search date range when no date_stop field
This commit is contained in:
@@ -842,13 +842,11 @@ var CalendarView = View.extend({
|
||||
*/
|
||||
get_range_domain: function(domain, start, end) {
|
||||
var format = time.date_to_str;
|
||||
|
||||
var extend_domain = [[this.date_start, '<=', format(end)]];
|
||||
|
||||
if (this.date_stop) {
|
||||
extend_domain.push(
|
||||
[this.date_stop, '>=', format(start)]
|
||||
);
|
||||
extend_domain.push([this.date_stop, '>=', format(start)]);
|
||||
} else if (!this.date_delay) {
|
||||
extend_domain.push([this.date_start, '>=', format(start)]);
|
||||
}
|
||||
return new CompoundDomain(domain, extend_domain);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user