Comment 3 for bug 1163912

Hoffmann Loïc (loic-hoffmann) wrote :

I solved this bug with this solution :

File : web_calendar/static/src/js/calendar.js
Line : 398

Change the get_range_domain function by that :

get_range_domain: function() {
        var format = openerp.web.date_to_str,
            domain = this.last_search[0].slice(0);
        domain.push('|');
        domain.push(([this.date_start, '>=', format(this.range_start.clone().addDays(-6))],
              [this.date_start, '<=', format(this.range_stop.clone().addDays(6))]));
        domain.push(([this.date_stop, '<=', format(this.range_stop.clone())],
            [this.date_stop, '>=', format(this.range_start.clone())]));
        return domain;
}