From 3ca23b4cd64b8fbe1cc18ecaadabc1970ea4a868 Mon Sep 17 00:00:00 2001 From: Julien Ortet <julien@le-filament.com> Date: Tue, 10 Dec 2024 16:53:59 +0100 Subject: [PATCH] [UPD] improve kanban reload --- static/src/js/kanban_button.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/src/js/kanban_button.js b/static/src/js/kanban_button.js index 4de64ce..cd3cf80 100644 --- a/static/src/js/kanban_button.js +++ b/static/src/js/kanban_button.js @@ -6,7 +6,9 @@ export class PriorityGroupKanbanController extends KanbanController { setup() { super.setup(); } - CreatePriorityGroupClick() { + + async CreatePriorityGroupClick() { + self = this; this.actionService.doAction({ type: "ir.actions.act_window", res_model: "acc.priority.group", @@ -19,8 +21,9 @@ export class PriorityGroupKanbanController extends KanbanController { context: this.props.context || {}, }, { - onClose: function () { - location.reload() + onClose: async () => { + await self.model.root.load(); + self.render(true); } }); } -- GitLab