Repository
OCA/maintenance · module folder · Try on Runboat
Module version
1.0.0
Category
Maintenance
Folder size
0.08 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, Antoni Marroig Campomar
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
maintenance_timesheet
Description
This module extends the functionality of Odoo Maintenance module adding
this features:

- Adds a project to an equipment. You can link an existing project or
  create a new one (with the Create project button) after creating the
  equipment.
- Adds project and task to a maintenance request. The default project
  for a request will be the equipment one, including the preventive
  requests periodically created.

This is is a technical addon to allow timesheet assignment to a
maintenance request.

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
edit_project project.project Inherits project.edit_project
hr_equipment_request_view_form maintenance.request form Inherits maintenance.hr_equipment_request_view_form
hr_equipment_request_view_kanban maintenance.request kanban Inherits maintenance.hr_equipment_request_view_kanban
hr_equipment_request_view_search maintenance.request search Inherits maintenance.hr_equipment_request_view_search
hr_equipment_request_view_tree maintenance.request tree Inherits maintenance.hr_equipment_request_view_tree
hr_equipment_view_form maintenance.equipment form Inherits maintenance.hr_equipment_view_form
hr_equipment_view_kanban maintenance.equipment kanban Inherits maintenance.hr_equipment_view_kanban
hr_equipment_view_search maintenance.equipment search Inherits maintenance.hr_equipment_view_search
hr_equipment_view_tree maintenance.equipment tree Inherits maintenance.hr_equipment_view_tree
project_milestone_form_view project.milestone form Inherits project.project_milestone_view_form
project_milestone_tree_view project.milestone tree Inherits project.project_milestone_view_tree
report_maintenance_request_document report_maintenance_request_document ir.ui.view qweb Inherits base_maintenance.report_maintenance_request_document
view_project_kanban project.project kanban Inherits project.view_project_kanban
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • preventive_default_task_id Many2one → project.task
    comodel_name='project.task' string='Default Task'
  • project_id Many2one → project.project
    comodel_name='project.project' ondelete='restrict'
Public methods (1)
  • action_create_project(self)

New fields (3)
  • milestone_id Many2one → project.milestone
    comodel_name='project.milestone' compute='_compute_milestone_id' readonly=False store=True
  • project_id Many2one → project.project
    comodel_name='project.project'
  • task_id Many2one → project.task
    comodel_name='project.task'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
    We ensure for appropiate project and task for new requests, specially the automatically generated ones
  • onchange_equipment_id(self)
    @api.onchange('equipment_id')

New fields (2)
  • maintenance_request_count Integer
    compute='_compute_maintenance_request_count' string='Maintenance Requests Count'
  • maintenance_request_ids One2many → maintenance.request
    comodel_name='maintenance.request' inverse_name='milestone_id' string='Maintenance Requests'
Public methods (1)
  • action_view_maintenance_request(self)

New fields (4)
  • equipment_count Integer
    compute='_compute_equipment_count'
  • equipment_ids One2many → maintenance.equipment
    string='Equipments' args: 'maintenance.equipment', 'project_id'
  • maintenance_request_count Integer
    compute='_compute_maintenance_request_count'
  • maintenance_request_ids One2many → maintenance.request
    string='Maintenance Requests' args: 'maintenance.request', 'project_id'
Public methods (2)
  • action_view_equipment_ids(self)
    Access to the current equipments for this project
  • action_view_maintenance_request_ids(self)
    Access to the undone maintenance requests for this project

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…