Minor modif

bzr revid: jvo@tinyerp.com-20090320053839-f8f05otqf9va9kxs
This commit is contained in:
Jay (Open ERP) 2009-03-20 11:08:39 +05:30
parent a79b0eefbe
commit 0d89c0070f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class project_work(osv.osv):
def unlink(self, cr, uid, ids, *args, **kwargs):
timesheet_id = self.pool.get('project.task.work').browse(cr, uid, ids)[0].hr_analytic_timesheet_id
delete entry from timesheet too while deleting entry to task.
# delete entry from timesheet too while deleting entry to task.
list_avail_ids = self.pool.get('hr.analytic.timesheet').search(cr, uid, [])
if timesheet_id in list_avail_ids:
obj = self.pool.get('hr.analytic.timesheet').unlink(cr, uid, [timesheet_id], *args, **kwargs)