mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 15:32:06 +02:00
16 lines
636 B
Python
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
|
|
)
|