Odoo18-Base/addons/hr_recruitment/wizard/mail_activity_schedule.py
2025-01-06 10:57:38 +07:00

14 lines
468 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class MailActivitySchedule(models.TransientModel):
_inherit = 'mail.activity.schedule'
def _compute_plan_department_filterable(self):
super()._compute_plan_department_filterable()
for wizard in self:
if not wizard.plan_department_filterable:
wizard.plan_department_filterable = wizard.res_model == 'hr.applicant'