addons/hr_holidays/static/src/views/kanban/kanban_controller.js
raw| 1 | import { KanbanController } from "@web/views/kanban/kanban_controller"; |
| 2 | import { EventBus, useSubEnv } from "@odoo/owl"; |
| 3 | |
| 4 | export class TimeOffKanbanController extends KanbanController { |
| 5 | setup() { |
| 6 | super.setup(); |
| 7 | useSubEnv({ |
| 8 | timeOffBus: new EventBus(), |
| 9 | }); |
| 10 | } |
| 11 | |
| 12 | afterExecuteActionButton(clickParams) { |
| 13 | super.afterExecuteActionButton(clickParams); |
| 14 | this.env.timeOffBus.trigger("update_dashboard"); |
| 15 | } |
| 16 | } |