[FIX] hr_attendance: invert condition
authorChristophe Simonis <chs@openerp.com>
Fri, 14 Dec 2012 15:52:25 +0000 (16:52 +0100)
committerChristophe Simonis <chs@openerp.com>
Fri, 14 Dec 2012 15:52:25 +0000 (16:52 +0100)
bzr revid: chs@openerp.com-20121214155225-olze66svgx4hwqvg

addons/hr_attendance/static/src/js/attendance.js

index f030562..c2750a9 100644 (file)
@@ -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