diff --git a/static/src/js/kanban_button.js b/static/src/js/kanban_button.js index 4de64cee5b89baecae9ed6fd663a0d185a1f3dbe..cd3cf805d90dff1fc2c4621bdaa33f7de71e66f4 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); } }); }