1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/appointment_hr/controllers/calendar_view.py
2024-12-10 09:04:09 +07:00

16 lines
554 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.appointment.controllers.calendar_view import AppointmentCalendarView
class AppointmentHRCalendarView(AppointmentCalendarView):
# Utility Methods
# ----------------------------------------------------------
def _prepare_appointment_type_anytime_values(self):
appt_type_vals = super()._prepare_appointment_type_anytime_values()
appt_type_vals.update(work_hours_activated=True)
return appt_type_vals