[FIX] hr_attendance: correct bad module in external id
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user