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

12 lines
451 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.tests import common
class TestModelAction(common.TransactionCase):
def test_create_system(self):
record = self.env["mgmtsystem.system"].create({"name": "SampleSystem"})
self.assertEqual(record.name, "SampleSystem")
self.assertEqual(record.company_id.id, self.env.company.id)