Odoo18-Base/addons/hr_recruitment/models/mail_activity_plan.py

14 lines
423 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class MailActivityPlan(models.Model):
_inherit = 'mail.activity.plan'
def _compute_department_assignable(self):
super()._compute_department_assignable()
for plan in self:
if not plan.department_assignable:
plan.department_assignable = plan.res_model == 'hr.applicant'