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

15 lines
429 B
Python

# Copyright 2012 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 MgmtSystemSystem(models.Model):
_name = "mgmtsystem.system"
_description = "System"
name = fields.Char("System", required=True)
company_id = fields.Many2one(
"res.company", "Company", default=lambda self: self.env.company
)