oca-maintenance/odoo-bringout-oca-maintenance-maintenance_plan/maintenance_plan/models/maintenance_request.py
Ernad Husremovic 5a635dd914 Add oca-maintenance submodule with 28 maintenance modules
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 17:23:31 +02:00

19 lines
569 B
Python

# Copyright 2017 Camptocamp SA
# Copyright 2019 ForgeFlow S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MaintenanceRequest(models.Model):
_inherit = "maintenance.request"
maintenance_kind_id = fields.Many2one(
string="Maintenance kind", comodel_name="maintenance.kind", ondelete="restrict"
)
maintenance_plan_id = fields.Many2one(
string="Maintenance plan", comodel_name="maintenance.plan", ondelete="restrict"
)
note = fields.Html()