3
0
Fork 0

Merge PR #2603 into 16.0

Signed-off-by pedrobaeza
16.0
OCA-git-bot 2023-09-14 07:31:06 +00:00
commit 2ede3b11d7
1 changed files with 4 additions and 0 deletions

View File

@ -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;