Purpose of this commit is to use the newly introduced helper to create test users in a quick way and reduce code duplication. This commit is linked to task ID 1889703 and PR #27526.
14 lines
472 B
Python
14 lines
472 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.test_mail.tests.common import mail_new_test_user
|
|
from odoo.tests import common
|
|
|
|
|
|
class TestHrCommon(common.TransactionCase):
|
|
|
|
def setUp(self):
|
|
super(TestHrCommon, self).setUp()
|
|
|
|
self.res_users_hr_officer = mail_new_test_user(self.env, login='hro', groups='base.group_user,hr.group_hr_user', name='HR Officer', email='hro@example.com')
|