diff options
| author | Raphael Collet <rco@odoo.com> | 2018-07-23 10:47:19 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2018-08-23 21:38:57 +0200 |
| commit | 2f7c03d9ca5809b65dc6eaa778064668d34fcd2e (patch) | |
| tree | 1d3452d9a127de1396563ab3b5f70de6e2bd5a7f /addons/hr_contract | |
| parent | 7ba9acea188a08a75ab1cd4a7f5f56e0d0f956ef (diff) | |
[IMP] base: add regular user admin as uid 2
User 1 simply becomes a technical user (inactive, no password).
Diffstat (limited to 'addons/hr_contract')
| -rw-r--r-- | addons/hr_contract/security/security.xml | 2 | ||||
| -rw-r--r-- | addons/hr_contract/tests/test_auto_status.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_contract/security/security.xml b/addons/hr_contract/security/security.xml index 1efe5cf4de8..6a922ba15b2 100644 --- a/addons/hr_contract/security/security.xml +++ b/addons/hr_contract/security/security.xml @@ -4,7 +4,7 @@ <record id="hr_contract.group_hr_contract_manager" model="res.groups"> <field name="name">Manager</field> <field name="category_id" ref="base.module_category_hr_contract"/> - <field name="users" eval="[(4, ref('base.user_root'))]"/> + <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/> </record> <record id="base.default_user" model="res.users"> diff --git a/addons/hr_contract/tests/test_auto_status.py b/addons/hr_contract/tests/test_auto_status.py index efb7de51f9a..580a6d17423 100644 --- a/addons/hr_contract/tests/test_auto_status.py +++ b/addons/hr_contract/tests/test_auto_status.py @@ -10,7 +10,7 @@ class TestHrContracts(TransactionCase): def setUp(self): super(TestHrContracts, self).setUp() self.contracts = self.env['hr.contract'].with_context(tracking_disable=True) - self.employee = self.env.ref('hr.employee_root') + self.employee = self.env.ref('hr.employee_admin') self.test_contract = dict(name='Test', wage=1, employee_id=self.employee.id, state='open') def apply_cron(self): |
