Debian Codegraph @

addons/hr_calendar/static/src/calendar/common/calendar_common_renderer.js

raw
1 import { AttendeeCalendarCommonRenderer } from "@calendar/views/attendee_calendar/common/attendee_calendar_common_renderer";
2 import { patch } from "@web/core/utils/patch";
3 import { onWillUpdateProps } from "@odoo/owl";
4
5 patch(AttendeeCalendarCommonRenderer.prototype, {
6 setup() {
7 super.setup(...arguments);
8 onWillUpdateProps(() => {
9 this.fc.api.setOption("businessHours", this.props.model.workingHours)
10 });
11 },
12 get options() {
13 return Object.assign(super.options, {
14 businessHours: this.props.model.workingHours,
15 });
16 },
17 });