11 lines
428 B
Python
11 lines
428 B
Python
from odoo import fields, models
|
|
|
|
|
|
class VoipCall(models.Model):
|
|
_inherit = "voip.call"
|
|
|
|
application_count = fields.Integer(related="partner_id.applicant_ids.application_count", related_sudo=False, groups="hr_recruitment.group_hr_recruitment_interviewer")
|
|
|
|
def voip_action_view_applications(self):
|
|
return self.partner_id.applicant_ids[0].action_open_applications() if self.partner_id.applicant_ids else False
|