Debian Codegraph @

addons/hr_homeworking_calendar/models/res_partner.py

raw symbols SCIP
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2
3 from odoo import models
4
5
6 class ResPartner(models.Model):
7 _inherit = 'res.partner'
8
9 def get_worklocation(self, start_date, end_date):
10 employee_id = self.env['hr.employee'].search([
11 ('work_contact_id.id', 'in', self.ids),
12 ('company_id.id', '=', self.env.company.id)])
13 return employee_id._get_worklocation(start_date, end_date)