mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 09:52:02 +02:00
12 lines
451 B
Python
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)
|