diff --git a/addons/hr_attendance/hr_attendance_view.xml b/addons/hr_attendance/hr_attendance_view.xml index 9fc554472e9..2e674de7985 100644 --- a/addons/hr_attendance/hr_attendance_view.xml +++ b/addons/hr_attendance/hr_attendance_view.xml @@ -52,7 +52,7 @@ - + diff --git a/addons/hr_attendance/static/src/js/attendance.js b/addons/hr_attendance/static/src/js/attendance.js index ae044475813..a7c3a7f9790 100644 --- a/addons/hr_attendance/static/src/js/attendance.js +++ b/addons/hr_attendance/static/src/js/attendance.js @@ -45,7 +45,10 @@ openerp.hr_attendance = function(instance) { on_click: function() { var self = this; hr_employee = new instance.web.DataSet(self, 'hr.employee'); - hr_employee.call('attendance_action_change', [[self.employee.id]]).done(function(result){self.renderElement()}); + hr_employee.call('attendance_action_change', [[self.employee.id]]).done(function(result){ + window.location.reload(); + //self.renderElement() + }); }, }); instance.web.DataSet.include({