[FIX] Project_timesheet : Wrong synchro on analytic line creation fro tasks(for name).

lp bug: https://launchpad.net/bugs/447402 fixed

bzr revid: jvo@tinyerp.com-20091012123310-gih8iz51zuxmlxs4
This commit is contained in:
GPA(OpenERP) 2009-10-12 18:03:10 +05:30 committed by Jay (Open ERP)
parent 6f68bf76ff
commit 2a2bb45c5e
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class project_work(osv.osv):
if line_id in list_avail_ids:
obj = self.pool.get('hr.analytic.timesheet')
if 'name' in vals:
vals_line['name'] = '%s: %s' % (tools.ustr(task.name), tools.ustr(vals['name']) or '/')
vals_line['name'] = '%s: %s' % (tools.ustr(task.task_id.name), tools.ustr(vals['name']) or '/')
if 'user_id' in vals:
vals_line['user_id'] = vals['user_id']
if 'date' in vals: