Merge PR #2256 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-08-02 14:50:06 +00:00

View File

@@ -43,9 +43,9 @@ odoo.define("web_timeline.TimelineController", function(require) {
const defaults = _.defaults({}, options, {
adjust_window: true,
});
const domains = params.domain;
const contexts = params.context;
const group_bys = params.groupBy;
const domains = params.domain || this.renderer.last_domains || [];
const contexts = params.context || [];
const group_bys = params.groupBy || this.renderer.last_group_bys || [];
this.last_domains = domains;
this.last_contexts = contexts;
// Select the group by