mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 17:12:00 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
# Copyright 2012 Savoir-faire Linux <http://www.savoirfairelinux.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import test_create_mgmtsystem
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue