Comment 4 for bug 1029316

Revision history for this message
Jacara (baskhuujacara) wrote :

Hello

I checked this issue with addon revision 7052. But I'm still facing this problem.

Traceback (most recent call last):
  File "/home/jacara/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/jacara/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/jacara/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/jacara/addons/account/account.py", line 577, in name_search
    ids = self.search(cr, user, [('code', operator, operand1), ('name', operator, operand2)]+ args, limit=limit)
  File "/home/jacara/addons/account/account.py", line 226, in search
    args[pos] = ('code', '=like', str(args[pos][2].replace('%', ''))+'%')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)

I'm using mn_MN language (Mongolian). And I'm searching some account unicode name on many2one widget. str method does not correct for me.

Why this bug didn't fixed on 6.1 stable version?