From 6e67e9e173d7420514df534fb9f41b78e8f0b00e Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 12 Apr 2007 07:15:29 +0000 Subject: [PATCH] Timesheet modifs bzr revid: fp@tinyerp.com-5bf6182e4b0083c2e34621b37cd4cbabe914fa99 --- addons/hr_timesheet/hr_timesheet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_timesheet/hr_timesheet.py b/addons/hr_timesheet/hr_timesheet.py index 89d8ea7e237..6046f2ad449 100644 --- a/addons/hr_timesheet/hr_timesheet.py +++ b/addons/hr_timesheet/hr_timesheet.py @@ -111,6 +111,7 @@ class hr_analytic_timesheet(osv.osv): 'product_id' : _getEmployeeProduct, 'general_account_id' : _getGeneralAccount, 'journal_id' : _getAnalyticJournal, + 'date' : lambda self,cr,uid,ctx: ctx.get('date', time.strftime('%Y-%m-%d')), 'user_id' : lambda obj, cr, uid, ctx : ctx.get('user_id', uid), }