[FIX] Use tools.ustr to get an unicode string

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

bzr revid: stephane@tinyerp.com-20090123171429-oe2x008pv9dxyjrk
This commit is contained in:
Stephane Wirtel 2009-01-23 18:14:29 +01:00
parent 450c47f25a
commit 67bde59454
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ from osv import fields, osv
import time
import datetime
import pooler
import tools
class project_work(osv.osv):
@ -55,7 +56,7 @@ class project_work(osv.osv):
vals_line['general_account_id'] = a
vals_line['journal_id'] = emp.journal_id.id
vals_line['name'] = '%s: %s' % (obj_task.name, vals['name'] or '/')
vals_line['name'] = '%s: %s' % (tools.ustr(obj_task.name), tools.ustr(vals['name']) or '/')
vals_line['user_id'] = vals['user_id']
vals_line['date'] = vals['date'][:10]
vals_line['unit_amount'] = vals['hours']