oca-technical/odoo-bringout-oca-management-system-mgmtsystem_hazard/mgmtsystem_hazard/models/mgmtsystem_hazard_control_measure.py
2025-08-29 15:43:03 +02:00

16 lines
636 B
Python

# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class MgmtsystemHazardControlMeasure(models.Model):
_name = "mgmtsystem.hazard.control_measure"
_description = "Control Measure of hazard"
name = fields.Char("Control Measure", required=True, translate=True)
responsible_user_id = fields.Many2one("res.users", "Responsible", required=True)
comments = fields.Text()
hazard_id = fields.Many2one(
"mgmtsystem.hazard", "Hazard", ondelete="cascade", required=False, index=True
)