openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #08747
[Bug 944761] Re: [6.1] Project GTD unicode error
After some testing, I changed the following code in project_gtd.py, as
suggested in the above mentioned forum topic and by Paulius :
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)
... and it works, but I don't know why ;-)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/944761
Title:
[6.1] Project GTD unicode error
Status in OpenERP Addons (modules):
Incomplete
Bug description:
When opening Project->My task got error:
addons/6.1/project_gtd/project_gtd.py", line 118, in fields_view_get
res['arch'] = res['arch'].replace('<separator name="gtdsep"/>', search_extended)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
I think fix is to add unicode() around res['arch'].
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/944761/+subscriptions
References