Skip to content

Commit

Permalink
Merge PR #2603 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 14, 2023
2 parents 416eab9 + c253255 commit 2ede3b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_timeline/static/src/js/timeline_controller.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ export default AbstractController.extend({
.utc()
.format("YYYY-MM-DD HH:mm:ss");
}
if (this.date_delay && this.date_start && this.date_stop && item.end) {
default_context["default_".concat(this.date_delay)] =
(moment(item.end) - moment(item.start)) / 3600000;
}
if (item.group > 0) {
default_context["default_".concat(this.renderer.last_group_bys[0])] =
item.group;
Expand Down

0 comments on commit 2ede3b1

Please sign in to comment.