[FIX]: get sheet id using timesheet line user id
bzr revid: atp@tinyerp.com-20121010124716-hdaebwpsowpowhl7
This commit is contained in:
parent
eb20086d59
commit
f935c9e482
|
@ -322,7 +322,7 @@ class hr_timesheet_line(osv.osv):
|
|||
for ts_line in self.browse(cursor, user, ids, context=context):
|
||||
sheet_ids = sheet_obj.search(cursor, user,
|
||||
[('date_to', '>=', ts_line.date), ('date_from', '<=', ts_line.date),
|
||||
('employee_id.user_id', '=', ts_line.sheet_id and ts_line.sheet_id.employee_id.user_id.id)],
|
||||
('employee_id.user_id', '=', ts_line.user_id.id)],
|
||||
context=context)
|
||||
if sheet_ids:
|
||||
# [0] because only one sheet possible for an employee between 2 dates
|
||||
|
|
Loading…
Reference in New Issue