[IMP] project_gtd : Used the tools.ustr() instead of unicode utf-8

bzr revid: amp@tinyerp.com-20120502133521-ohn7xh1vl7xlbewm
This commit is contained in:
Amit (OpenERP)
2012-05-02 19:05:21 +05:30
parent 910e8a2adc
commit 2157901b06
+1 -1
View File
@@ -115,7 +115,7 @@ class project_task(osv.osv):
search_extended += '''<filter domain="[('timebox_id','=', ''' + str(time.id) + ''')]" icon="''' + icon + '''" string="''' + time.name + '''" context="{'user_invisible': True}"/>\n'''
search_extended +='''<separator orientation="vertical"/>'''
res['arch'] = unicode(res['arch'], 'utf-8').replace('<separator name="gtdsep"/>', search_extended)
res['arch'] = tools.ustr(res['arch']).replace('<separator name="gtdsep"/>', search_extended)
return res