fix(fusion_clock): dashboard 'All Attendances' opens list, not gantt

hr_attendance's action is gantt-first and the native gantt timeline renders collapsed until a manual resize; open viewType:list so the button lands on a working list. Bump 3.14.3 -> 3.14.4.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-31 10:48:41 -04:00
parent 68b10e1199
commit a858693d9c
2 changed files with 8 additions and 2 deletions

View File

@@ -76,7 +76,13 @@ export class FusionClockDashboard extends Component {
onRefresh() { return this._fetchData(); }
onOpenClock() { this.action.doAction({ type: "ir.actions.act_url", url: "/my/clock", target: "self" }); }
onViewTimesheets() { this.action.doAction({ type: "ir.actions.act_url", url: "/my/clock/timesheets", target: "self" }); }
onViewAttendances() { this.action.doAction("hr_attendance.hr_attendance_action"); }
onViewAttendances() {
// hr_attendance's action is gantt-first, and the native gantt timeline
// renders collapsed until a manual resize. Land on the list instead —
// the better "all attendances" destination (sort/filter/export); the
// gantt is still reachable from the view switcher.
this.action.doAction("hr_attendance.hr_attendance_action", { viewType: "list" });
}
onViewCorrections() { this.action.doAction("fusion_clock.action_fusion_clock_correction"); }
onViewActivityLogs() { this.action.doAction("fusion_clock.action_fusion_clock_activity_log"); }
onViewPenalties() { this.action.doAction("fusion_clock.action_fusion_clock_penalty"); }