[FIX] project_gtd: format exception correctly

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

bzr revid: christophe@taupe-20081226163458-btibjzmn0wu9jx3o
This commit is contained in:
Christophe Simonis 2008-12-26 17:34:58 +01:00
parent d67eab9c07
commit 6de8fb6059
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class wiz_timebox_open(wizard.interface):
pool = pooler.get_pool(cr.dbname)
ids = pool.get('project.gtd.timebox').search(cr, uid, [('user_id','=',uid),('type','=',tbtype)])
if not len(ids):
raise wizard.except_wizard('Error !', 'No timebox of the type "%s" defined !')
raise wizard.except_wizard('Error !', 'No timebox of the type "%s" defined !' % (tbtype,))
view_type = 'form,tree'
if len(ids) >= 1:
domain = "[('id','in',["+','.join(map(str,ids))+"])]"