Permalink
Browse files

🛡 base_attendance fixed js tours

  • Loading branch information...
KolushovAlexandr committed Dec 4, 2018
1 parent 6724b0b commit e73999730fe5cae3b516e074ebe76efc9231d7ef
@@ -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>

@@ -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.