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

16 lines
592 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
# This model is deprecated and must be removed in future versions.
class MgmtsystemHazardHazard(models.Model):
_name = "mgmtsystem.hazard.hazard"
_description = "Hazard"
company_id = fields.Many2one(
"res.company", "Company", required=True, default=lambda self: self.env.company
)
name = fields.Char("Hazard", required=True, translate=True)
description = fields.Text(translate=True)