Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.63 MB
Module directory on disk
Code analysis 0 migration notes 9 models 2 views 0 HTTP endpoints

Description

Bridge module to integrate leaves in timesheet

This module allows to automatically log timesheets when employees are on leaves. Project and task can be configured company-wide.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 2

XML IDNameModelTypeStatus
leave_task_form_view project.task.leave.form.view project.task form Inherits hr_timesheet.view_task_form2_inherited
res_config_settings_view_form res.config.settings.view.form.inherit.project.timesheet.holidays res.config.settings form Inherits hr_timesheet.res_config_settings_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 9

New fields (3)
  • global_leave_id Many2one → resource.calendar.leaves
    export_string_translation=False index='btree_not_null' ondelete='cascade' string='Global Time Off' args: 'resource.calendar.leaves'
  • holiday_id Many2one → hr.leave
    copy=False export_string_translation=False index='btree_not_null' string='Time Off Request' args: 'hr.leave'
  • task_id Many2one
    domain="[('allow_timesheets', '=', True), ('project_id', '=?', project_id), ('has_template_ancestor', '=', False), ('is_timeoff_task', '=', False)]"
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (0)

No new fields.

Public methods (1)
  • action_register(self)

New fields (1)
  • timesheet_ids One2many → account.analytic.line
    string='Analytic Lines' args: 'account.analytic.line', 'holiday_id'
Public methods (2)
  • action_refuse(self)
    Remove the timesheets linked to the refused holidays
  • write(self, vals)

New fields (2)
  • is_timeoff_task Boolean
    compute='_compute_is_timeoff_task' export_string_translation=False groups='hr_timesheet.group_hr_timesheet_user' search='_search_is_timeoff_task' args: 'Is Time off Task'
  • leave_types_count Integer
    compute='_compute_leave_types_count' string='Time Types Count'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • leave_timesheet_task_id Many2one → project.task
    domain="[('project_id', '=', internal_project_id)]" string='Time Off Task' args: 'project.task'
Public methods (0)

No public methods.

New fields (2)
  • internal_project_id Many2one
    domain="[('company_id', '=', company_id), ('is_template', '=', False)]" help='The default project used when automatically generating timesheets via time off requests. You can specify another project on each time type individually.' readonly=False related='company_id.internal_project_id' required=True string='Internal Project'
  • leave_timesheet_task_id Many2one
    domain="[('company_id', '=', company_id), ('project_id', '=?', internal_project_id), ('has_template_ancestor', '=', False)]" help='The default task used when automatically generating timesheets via time off requests. You can specify another task on each time type individually.' readonly=False related='company_id.leave_timesheet_task_id' string='Time Off Task'
Public methods (0)

No public methods.

New fields (1)
  • timesheet_ids One2many → account.analytic.line
    export_string_translation=False string='Analytic Lines' args: 'account.analytic.line', 'global_leave_id'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…