Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by20/25
    2 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 10.0

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

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

Description

This module extends the functionality of Odoo Maintenance module by allowing an equipment to have different preventive maintenance kinds.

Dependencies

Odoo dependencies
OCA/maintenance:
odoo/odoo:
- web
- bus
Python dependencies
python-dateutil
System dependencies
None
Required by
maintenance_location, maintenance_plan_activity

Code analysis

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

Views touched 10

XML IDNameModelTypeStatus
hr_equipment_request_view_form maintenance.request.form@maintenance_plan maintenance.request form Inherits maintenance.hr_equipment_request_view_form
hr_equipment_request_view_tree equipment.request.list@maintenance_plan maintenance.request tree Inherits maintenance.hr_equipment_request_view_tree
hr_equipment_view_form equipment.form@maintenance_plan maintenance.equipment form Inherits maintenance.hr_equipment_view_form
hr_equipment_view_search equipment.search@maintenance_plan maintenance.equipment search Inherits maintenance.hr_equipment_view_search
maintenance_kind_view_tree maintenance.kind.list@maintenance_plan maintenance.kind list New
maintenance_plan_view_form maintenance.plan.form@maintenance_plan maintenance.plan form New
maintenance_plan_view_search maintenance.plan.search@maintenance_plan maintenance.plan search New
maintenance_plan_view_tree maintenance.plan.list@maintenance_plan maintenance.plan list New
report_maintenance_request_document report_maintenance_request_document ir.ui.view qweb Inherits base_maintenance.report_maintenance_request_document
res_config_settings_view_form res.config.settings.view.form@maintenance_plan res.config.settings form Inherits maintenance.res_config_settings_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (4)
  • maintenance_plan_count Integer
    compute='_compute_maintenance_plan_count' store=True
  • maintenance_plan_ids One2many → maintenance.plan
    comodel_name='maintenance.plan' inverse_name='equipment_id'
  • maintenance_team_required Boolean
    compute='_compute_team_required'
  • search_maintenance_plan_count Integer
    compute='_compute_search_maintenance_plan_count' string='Maintenance All Plan Count'
Public methods (0)

No public methods.

New fields (2)
  • active Boolean
    default=True required=True args: 'Active Kind'
  • name Char
    required=True translate=True
Public methods (0)

No public methods.

New fields (24)
  • active Boolean
    default=True
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr>
  • duration Float
    help='Maintenance duration in hours' string='Duration (hours)'
  • equipment_id Many2one → maintenance.equipment
    comodel_name='maintenance.equipment' ondelete='cascade'
  • generate_domain Char
    string='Apply on'
  • generate_with_domain Boolean
  • instruction_google_slide Char
    help='Paste the url of your Google Slide. Make sure the access to the document is public.' args: 'Google Slide'
  • instruction_pdf Binary
    args: 'PDF'
  • instruction_text Html
    args: 'Text'
  • instruction_type Selection
    default='text' string='Instruction' args: [('pdf', 'PDF'), ('google_slide', 'Google Slide'), ('text', 'Text')]
  • interval Integer
    default=1 help='Interval between each maintenance' string='Frequency'
  • interval_step Selection
    default='year' help='Let the event automatically repeat at that interval step' string='Recurrence' args: [('day', 'Day(s)'), ('week', 'Week(s)'), ('month', 'Month(s)'), ('year', 'Year(s)')]
  • maintenance_count Integer
    compute='_compute_maintenance_count' store=True string='Maintenance'
  • maintenance_ids One2many → maintenance.request
    string='Maintenance requests' args: 'maintenance.request', 'maintenance_plan_id'
  • maintenance_kind_id Many2one → maintenance.kind
    comodel_name='maintenance.kind' ondelete='restrict'
  • maintenance_open_count Integer
    compute='_compute_maintenance_count' store=True string='Current Maintenance'
  • maintenance_plan_horizon Integer
    default=1 help='Maintenance planning horizon. Only the maintenance requests inside the horizon will be created.' string='Planning Horizon period'
  • maintenance_team_id Many2one → maintenance.team
    args: 'maintenance.team'
  • name Char
    args: 'Description'
  • next_maintenance_date Date
    compute='_compute_next_maintenance' store=True
  • planning_step Selection
    default='year' help='Let the event automatically repeat at that interval' string='Planning Horizon step' args: [('day', 'Day(s)'), ('week', 'Week(s)'), ('month', 'Month(s)'), ('year', 'Year(s)')]
  • search_equipment_id Many2one → maintenance.equipment
    comodel_name='maintenance.equipment' compute='_compute_search_equipment' search='_search_search_equipment'
  • skip_notify_follower_on_requests Boolean
    default=True string='Do not notify to follower when creating requests?'
  • start_maintenance_date Date
    default=fields.Date.context_today help='Date from which the maintenance will we active'
Public methods (3)
  • button_manual_request_generation(self)
    Call the same method that the cron for generating manually the maintenance requests.
  • get_relativedelta(self, interval, step)
  • unlink(self)
    Restrict deletion of maintenance plan should there be maintenance requests of this kind which are not done for its equipment

New fields (2)
  • maintenance_kind_id Many2one → maintenance.kind
    comodel_name='maintenance.kind' ondelete='restrict'
  • maintenance_plan_id Many2one → maintenance.plan
    comodel_name='maintenance.plan' ondelete='restrict'
Public methods (0)

No public methods.

New fields (1)
  • module_maintenance_plan_only Boolean
    args: 'Hide built-in recurrent settings'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…