From 61382204dc4e841f5dec9158bac8ad3a0c0aaaec Mon Sep 17 00:00:00 2001 From: Tejas Tank Date: Mon, 3 Dec 2012 12:44:42 +0500 Subject: [PATCH] [FIX] Does not require to set related field in default. bzr revid: tta@openerp.com-20121203074442-cbzavdhswqyd306g --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index 36b76c0970c..f878122cc9c 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -179,8 +179,7 @@ class hr_timesheet_sheet(osv.osv): 'date_to' : _default_date_to, 'state': 'new', 'employee_id': _default_employee, - 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr_timesheet_sheet.sheet', context=c), - 'user_id': _default_employee + 'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'hr_timesheet_sheet.sheet', context=c), } def _sheet_date(self, cr, uid, ids, forced_user_id=False, context=None):