mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 16:12:08 +02:00
16 lines
602 B
Python
16 lines
602 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 MgmtsystemHazardSeverity(models.Model):
|
|
_name = "mgmtsystem.hazard.severity"
|
|
_description = "Severity of hazard"
|
|
|
|
company_id = fields.Many2one(
|
|
"res.company", "Company", required=True, default=lambda self: self.env.company
|
|
)
|
|
name = fields.Char("Severity", required=True, translate=True)
|
|
value = fields.Integer(required=True)
|
|
description = fields.Text(required=False, translate=False)
|