summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/hr_attendance/static/src/js/attendance.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_attendance/static/src/js/attendance.js b/addons/hr_attendance/static/src/js/attendance.js
index f030562da9b..c2750a920a4 100644
--- a/addons/hr_attendance/static/src/js/attendance.js
+++ b/addons/hr_attendance/static/src/js/attendance.js
@@ -76,7 +76,7 @@ openerp.hr_attendance = function (instance) {
this._super();
var self = this;
this.update_promise.done(function () {
- if (_.isUndefined(self.attendanceslider)) {
+ if (!_.isUndefined(self.attendanceslider)) {
return;
}
// check current user is an employee