From a98de2cea4989171e6e3bb85960dafc380c6a409 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Tue, 15 May 2012 11:01:45 +0530 Subject: [PATCH] [FIX] hr_attendance: fix problem of current_date field in search view of attedance and reload page after click on attendancenotifier widget to update current page/list/kanban of employee, timesheet , attendance bzr revid: hmo@tinyerp.com-20120515053145-9dpzju1u07v2xe26 --- addons/hr_attendance/hr_attendance_view.xml | 2 +- addons/hr_attendance/static/src/js/attendance.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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({