Repository
OCA/timesheet · module folder · Try on Runboat
Module version
1.0.1
Category
Generic Modules/Human Resources
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr-timesheet
Last tracking update
2026-08-07 07:17:50
Authors
Odoo Community Association (OCA), Therp BV, Sunflower IT
Maintainers
Odoo Community Association (OCA), Therp BV, Sunflower IT
Committers
Laurent Mignon (ACSONE), mreficent, François Honoré, OCA Transbot, OCA-git-bot, oca-travis, aheficent
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_analytic_account_timesheet_form account.analytic.account form Inherits analytic.view_account_analytic_account_form
edit_holiday_status_form1 hr.holidays.status form Inherits hr_holidays.edit_holiday_status_form
view_company_inherit_form res.company.form.inherit res.company form Inherits base.view_company_form
view_holiday_status_tree1 hr.holidays.status tree Inherits hr_holidays.view_holiday_status_normal_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (2)
  • holiday_status_ids One2many → hr.holidays.status
    comodel_name='hr.holidays.status' inverse_name='analytic_account_id'
  • is_leave_account Boolean
    default=False help='Check this field if this account manages leaves' args: 'Leaves'
Public methods (1)
  • project_create(self, vals)
    @api.multi

New fields (1)
  • leave_id Many2one → hr.holidays
    comodel_name='hr.holidays' string='Leave id'
Public methods (1)
  • write(self, vals)
    @api.multi

New fields (1)
  • analytic_line_ids One2many → account.analytic.line
    comodel_name='account.analytic.line' inverse_name='leave_id' string='Analytic Lines'
Public methods (3)
  • action_approve(self)
    @api.multi
    On grant of leave, add timesheet lines
  • action_refuse(self)
    @api.multi
    On refusal of leave, delete timesheet lines
  • add_timesheet_line(self, description, date, hours, account)
    @api.multi
    Add a timesheet line for this leave

New fields (2)
  • analytic_account_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' related='project_id.analytic_account_id' string='Analytic Account'
  • project_id Many2one → project.project
    comodel_name='project.project' string='Project'
Public methods (0)

No public methods.

New fields (1)
  • timesheet_hours_per_day Float
    default=8.0 digits=(2, 2) string='Timesheet Hours Per Day'
Public methods (0)

No public methods.

Loading…