Skip to content
Snippets Groups Projects
Unverified Commit 6fc692d3 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] hr_attendance: correct bad module in external id

parent 96f0dd01
Branches
Tags
No related merge requests found
......@@ -76,7 +76,7 @@ class HrEmployee(models.Model):
@api.multi
def attendance_manual(self, next_action, entered_pin=None):
self.ensure_one()
if self.env['res.users'].browse(SUPERUSER_ID).has_group('hr_attenance.group_hr_attendance_use_pin') and (self.user_id and self.user_id.id != self._uid or not self.user_id):
if self.env['res.users'].browse(SUPERUSER_ID).has_group('hr_attendance.group_hr_attendance_use_pin') and (self.user_id and self.user_id.id != self._uid or not self.user_id):
if entered_pin != self.pin:
return {'warning': _('Wrong PIN')}
return self.attendance_action(next_action)
......
......@@ -9,4 +9,4 @@ class BaseConfigSettings(models.TransientModel):
group_attendance_use_pin = fields.Selection([(0, 'Employees do not need to enter their PIN to check in manually in the "Company Screen".'),
(1, 'Employees must enter their PIN to check in manually in the "Company Screen".')],
string='Employee PIN', help='Enable or disable employee PIN identification at check in', implied_group="hr_attenance.group_hr_attendance_use_pin")
string='Employee PIN', help='Enable or disable employee PIN identification at check in', implied_group="hr_attendance.group_hr_attendance_use_pin")
......@@ -64,7 +64,7 @@ var MainMenuConfirm = Widget.extend({
start: function () {
var self = this;
self.session.user_has_group('hr_attenance.group_hr_attendance_use_pin').then(function(has_group){
self.session.user_has_group('hr_attendance.group_hr_attendance_use_pin').then(function(has_group){
self.use_pin = has_group;
self.$el.html(QWeb.render("HrAttendanceMainMenuConfirm", {widget: self}));
self.start_clock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment