mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-24 11:32:02 +02:00
13 lines
423 B
Python
13 lines
423 B
Python
# 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'
|