[FIX] project: fix error on ``schedule_tasks`` when there is no resource available on project

bzr revid: xal@openerp.com-20131219154546-xlbgqfkc34ndf8kp
This commit is contained in:
Xavier ALT 2013-12-19 16:45:46 +01:00
commit 3f7f02d508
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ def Project():
""" % (
project.id,
project.date_start or time.strftime('%Y-%m-%d'), working_days,
'|'.join(['User_'+str(x) for x in puids])
'|'.join(['User_'+str(x) for x in puids]) or 'None'
)
vacation = calendar_id and tuple(resource_pool.compute_vacation(cr, uid, calendar_id, context=context)) or False
if vacation: