From 7cb4ab3da793b3691d4233ecf50bbb50a147b248 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 31 Mar 2009 17:03:51 +0530 Subject: [PATCH] [FIX]Bug 352191 : Corrected bzr revid: jvo@tinyerp.com-20090331113351-3bcrryo6ws3asnv3 --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 237d0f6c9c3..1aa4673ce8a 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -528,7 +528,7 @@ class hr_attendance(osv.osv): raise osv.except_osv(_('Error !'), _('You cannot modify an entry in a confirmed timesheet !')) res = super(hr_attendance,self).create(cr, uid, vals, context=context) if 'sheet_id' in context: - if context['sheet_id'] != vals['sheet_id']: + if context['sheet_id'] != self.browse(cr, uid, res, context=context).sheet_id.id: raise osv.except_osv(_('UserError'), _('You cannot enter an attendance ' \ 'date outside the current timesheet dates!')) return res