forked from Mapan/odoo17e
16 lines
669 B
Python
16 lines
669 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
|
|
from odoo.http import request
|
|
from odoo.osv.expression import AND
|
|
|
|
|
|
class AppointmentHrRecruitmentCalendarView(AppointmentCalendarView):
|
|
|
|
def _get_staff_user_appointment_invite_domain(self, appointment_type):
|
|
domain = super()._get_staff_user_appointment_invite_domain(appointment_type)
|
|
if 'default_applicant_id' in request.env.context:
|
|
domain = AND([domain, [('applicant_id', '=', request.env.context['default_applicant_id'])]])
|
|
return domain
|