Amit Parik (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-944761-amp into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #944761 in OpenERP Addons: "[Trunk/6.1] Project GTD unicode error"
  https://bugs.launchpad.net/openobject-addons/+bug/944761

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-944761-amp/+merge/100272

Fixes the unicode problem on my task view which is created from fields_view_get

This view doesn't open in other languages (i.e French,Italian ) without demo 
data.

This fix will solved this problem.

Thanks!
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-944761-amp/+merge/100272
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-944761-amp.
=== modified file 'project_gtd/project_gtd.py'
--- project_gtd/project_gtd.py	2011-12-21 22:15:04 +0000
+++ project_gtd/project_gtd.py	2012-03-31 08:44:20 +0000
@@ -115,7 +115,7 @@
                 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'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)
+            res['arch'] = unicode(res['arch'], 'utf-8').replace('<separator name="gtdsep"/>', search_extended)
 
         return res
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to