[IMP]:hr_timesheet_sheet:add description
bzr revid: apa@tinyerp.com-20100901120441-s8y6mzyzlqt56tib
This commit is contained in:
parent
7a06b94952
commit
3fd8ddc9e3
|
@ -93,6 +93,7 @@ class hr_timesheet_sheet(osv.osv):
|
|||
_name = "hr_timesheet_sheet.sheet"
|
||||
_table = 'hr_timesheet_sheet_sheet'
|
||||
_order = "id desc"
|
||||
_description="Timesheet"
|
||||
|
||||
def _total_day(self, cr, uid, ids, name, args, context=None):
|
||||
res = {}
|
||||
|
@ -147,7 +148,7 @@ class hr_timesheet_sheet(osv.osv):
|
|||
sheet_id = link_emp[emp.id]
|
||||
result[sheet_id] = emp.state
|
||||
return result
|
||||
|
||||
|
||||
def check_employee_attendance_state(self, cr, uid, sheet_id, context=None):
|
||||
ids_signin = self.pool.get('hr.attendance').search(cr,uid,[('sheet_id', '=', sheet_id),('action','=','sign_in')])
|
||||
ids_signout = self.pool.get('hr.attendance').search(cr,uid,[('sheet_id', '=', sheet_id),('action','=','sign_out')])
|
||||
|
|
Loading…
Reference in New Issue