oca-ocb-hr/odoo-bringout-oca-ocb-hr_recruitment/hr_recruitment/wizard/mail_activity_schedule.py
Ernad Husremovic e1d89e11e3 19.0 vanilla
2026-03-09 09:31:00 +01:00

13 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'