mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 20:32:02 +02:00
14 lines
424 B
Python
14 lines
424 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HrEmployeePublic(models.Model):
|
|
_inherit = 'hr.employee.public'
|
|
|
|
has_timesheet = fields.Boolean(related='employee_id.has_timesheet')
|
|
|
|
def action_timesheet_from_employee(self):
|
|
self.ensure_one()
|
|
if self.is_user:
|
|
return self.employee_id.action_timesheet_from_employee()
|