[FIX] Does not require to set related field in default.
bzr revid: tta@openerp.com-20121203074442-cbzavdhswqyd306g
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user