[FIX] hr_timesheet_sheet: select timesheet

Select analytic lines related to timesheet only.

opw-654362
This commit is contained in:
Nicolas Martinelli
2015-11-24 12:56:32 +01:00
parent aaa8d07de0
commit a4b6e3a82a
@@ -310,6 +310,7 @@ class account_analytic_line(osv.osv):
WHERE %(date_to)s >= l.date
AND %(date_from)s <= l.date
AND %(user_id)s = l.user_id
AND l.is_timesheet = True
GROUP BY l.id""", {'date_from': ts.date_from,
'date_to': ts.date_to,
'user_id': ts.employee_id.user_id.id,})