mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 03:32:00 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
24
odoo-bringout-oca-ocb-hr_skills/hr_skills/tests/test_ui.py
Normal file
24
odoo-bringout-oca-ocb-hr_skills/hr_skills/tests/test_ui.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
import odoo.tests
|
||||
|
||||
@odoo.tests.tagged('-at_install', 'post_install')
|
||||
class SkillsTestUI(odoo.tests.HttpCase):
|
||||
def test_ui(self):
|
||||
levels = self.env['hr.skill.level'].create([{
|
||||
'name': f'Level {x}',
|
||||
'level_progress': x * 10,
|
||||
} for x in range(10)])
|
||||
skill_type = self.env['hr.skill.type'].create({
|
||||
'name': 'Best Music',
|
||||
'skill_level_ids': levels.ids,
|
||||
})
|
||||
self.env['hr.skill'].create([{
|
||||
'name': 'Fortunate Son',
|
||||
'skill_type_id': skill_type.id,
|
||||
}, {
|
||||
'name': 'Oh Mary',
|
||||
'skill_type_id': skill_type.id,
|
||||
}])
|
||||
|
||||
self.start_tour("/web", 'hr_skills_tour', login='admin')
|
||||
Loading…
Add table
Add a link
Reference in a new issue