Xavier ALT (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-574187-xal into
lp:openobject-addons/6.1.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574187-xal/+merge/103513
Hi,
When user has a language other that English and go to Project / Project / My
Task with module "project_gtd" installed, an UnicodeDecodeError exception is
raise.
The MP force decoding to UTF-8 arch returned by ORM fields_view_get() - as this
arch may contain translated string.
Regards,
Xavier
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574187-xal/+merge/103513
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-574187-xal.
=== 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-04-25 16:48:27 +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'],'utf8').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