Repository
OCA/maintenance · module folder · Try on Runboat
Module version
1.0.0
Category
Human Resources
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/maintenance
Last tracking update
2026-08-07 09:06:24
Authors
Odoo Community Association (OCA), Solvos
Maintainers
Odoo Community Association (OCA), Solvos
Committers
OCA-git-bot, oca-ci, emorisset-cem, RuxMgit
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds timesheets to a request.

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
equipment_request_view_form maintenance.request form Inherits base_maintenance.equipment_request_view_form
hr_equipment_request_view_kanban maintenance.request kanban Inherits maintenance.hr_equipment_request_view_kanban
hr_equipment_request_view_tree maintenance.request tree Inherits maintenance.hr_equipment_request_view_tree
hr_timesheet_line_form account.analytic.line form Inherits hr_timesheet.hr_timesheet_line_form
hr_timesheet_line_search account.analytic.line search Inherits hr_timesheet.hr_timesheet_line_search
hr_timesheet_line_tree account.analytic.line tree Inherits hr_timesheet.hr_timesheet_line_tree
report_maintenance_request_document report_maintenance_request_document ir.ui.view qweb Inherits maintenance_project.report_maintenance_request_document
timesheet_view_tree_user account.analytic.line tree Inherits hr_timesheet.timesheet_view_tree_user
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • maintenance_request_id Many2one → maintenance.request
    comodel_name='maintenance.request'
Public methods (4)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_maintenance_request_id(self)
    @api.onchange('maintenance_request_id')
  • unlink(self)
  • write(self, values)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (5)
  • planned_hours Float
    tracking=True
  • progress Float
    aggregator='avg' compute='_compute_progress_hours' store=True
  • remaining_hours Float
    compute='_compute_progress_hours' readonly=True store=True
  • timesheet_ids One2many → account.analytic.line
    comodel_name='account.analytic.line' inverse_name='maintenance_request_id' string='Timesheets'
  • timesheet_total_hours Float
    compute='_compute_timesheet_total_hours' readonly=True store=True
Public methods (1)
  • action_view_timesheet_ids(self)
    Access to the current timesheets for this maintenance request The view will be restricted to the current request and only HR managers could create timesheets for every employee

New fields (1)
  • maintenance_request_id Many2one → maintenance.request
    comodel_name='maintenance.request' readonly=True
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…