Initial commit: Hr packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:50 +02:00
commit 62531cd146
2820 changed files with 1432848 additions and 0 deletions

View file

@ -0,0 +1,29 @@
/** @odoo-module **/
import tour from 'web_tour.tour';
tour.register('hr_employee_tour', {
test: true,
url: '/web',
}, [
tour.stepUtils.showAppsMenuItem(),
{
content: "Open Employees app",
trigger: ".o_app[data-menu-xmlid='hr.menu_hr_root']",
run: 'click',
},
{
content: "Open an Employee Profile",
trigger: ".o_kanban_record_title:contains('Johnny H.')",
run: 'click',
},
{
content: "Open user account menu",
trigger: ".o_user_menu .oe_topbar_name",
run: 'click',
}, {
content: "Open My Profile",
trigger: "[data-menu=settings]",
run: 'click',
},
]);

View file

@ -0,0 +1,19 @@
/** @odoo-module **/
import tour from 'web_tour.tour';
/**
* As 'hr' changes the flow a bit and displays the user preferences form in a full view instead of
* a modal, we adapt the steps of the original tour accordingly.
*/
tour.tours['mail/static/tests/tours/user_modify_own_profile_tour.js'].steps = [{
content: 'Open user account menu',
trigger: '.o_user_menu button',
}, {
content: "Open preferences / profile screen",
trigger: '[data-menu=settings]',
}, {
content: "Update the email address",
trigger: 'div[name="email"] input',
run: 'text updatedemail@example.com',
}, ...tour.stepUtils.saveForm()];