Skip to content

Commit

Permalink
🛡️ base_attendance fixed js tours
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr committed Dec 6, 2018
1 parent 6724b0b commit e739997
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion base_attendance/security/res_attendance_security.xml
Expand Up @@ -35,7 +35,7 @@
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

<record id="base.default_user" model="res.users">
<record id="base.partner_root" model="res.users">
<field name="groups_id" eval="[(4,ref('base_attendance.group_hr_attendance_manager'))]"/>
</record>

Expand Down
15 changes: 11 additions & 4 deletions base_attendance/static/src/js/test_kiosk_tour.js
Expand Up @@ -30,16 +30,23 @@ odoo.define('base_attendance.tour', function (require) {
}

var steps = [{
trigger: 'a.oe_menu_toggler:contains("Attendance")',
trigger: 'a.full[href="#"]',
content: _t("Click to open app list"),
position: 'bottom',
}, {
trigger: 'a.dropdown-item.o_app:contains("Attendance")',
content: _t("Click to enter menu attendances"),
position: 'bottom',
}, {
trigger: 'a.oe_menu_leaf:contains("Kiosk")',
trigger: 'a.dropdown-toggle.o-no-caret.o_menu_header_lvl_1:contains("Attendance")',
content: _t("Click to open Manage Attendances menu"),
}, {
trigger: 'a.dropdown-item.o_menu_entry_lvl_2:contains("Kiosk")',
content: _t("Click to enter Kiosk"),
}];

steps = steps.concat(partner_check_in_out("Laith Jubair", 'red'));
steps = steps.concat(partner_check_in_out("Laith Jubair", 'green'));
steps = steps.concat(partner_check_in_out("Brandon Freeman", 'red'));
steps = steps.concat(partner_check_in_out("Brandon Freeman", 'green'));

tour.register('test_kiosk_tour', { test: true, url: '/web' }, steps);
});

0 comments on commit e739997

Please sign in to comment.