Amit Parik (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1029316-amp into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1029316 in OpenERP Addons: "[Trunk/6.1.1] UnicodeEncodeError: 'ascii'
codec can't encode character u'\xf3' in position 8: ordinal not in range(128)"
https://bugs.launchpad.net/openobject-addons/+bug/1029316
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1029316-amp/+merge/117229
Hello,
This branch Fixed the unicode decode error on search of account.account object.
When search the account form invoice line and passed the name like "prestación
prestación" it will raised the error as reported in bug.This fix will solved it.
Thank you!
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1029316-amp/+merge/117229
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1029316-amp.
=== modified file 'account/account.py'
--- account/account.py 2012-07-25 19:26:32 +0000
+++ account/account.py 2012-07-30 09:42:27 +0000
@@ -30,6 +30,7 @@
import decimal_precision as dp
from tools.translate import _
from tools.float_utils import float_round
+import tools
_logger = logging.getLogger(__name__)
@@ -225,7 +226,7 @@
while pos < len(args):
if args[pos][0] == 'code' and args[pos][1] in ('like', 'ilike') and args[pos][2]:
- args[pos] = ('code', '=like', str(args[pos][2].replace('%', ''))+'%')
+ args[pos] = ('code', '=like', tools.ustr(args[pos][2].replace('%', ''))+'%')
if args[pos][0] == 'journal_id':
if not args[pos][2]:
del args[pos]
_______________________________________________
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