mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 22:32:01 +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 @@
|
|||
from . import test_contract_reference
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright 2020 Creu Blanca
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestContractReference(TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestContractReference, self).setUp()
|
||||
self.employee = self.env["hr.employee"].create({"name": "Emp"})
|
||||
|
||||
def test_contract_reference(self):
|
||||
contract = self.env["hr.contract"].create(
|
||||
{"employee_id": self.employee.id, "wage": 1000}
|
||||
)
|
||||
self.assertNotEqual(contract.name, "/")
|
||||
Loading…
Add table
Add a link
Reference in a new issue