Couldn't search account by unicode names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm testing 6.1 version.
It could not able to search account by unicode name. I found the reason of this problem.
addons/
def search(self, cr, uid, args, offset=0, limit=None, order=None,
if context is None:
context = {}
pos = 0
while pos < len(args):
if args[pos][0] == 'code' and args[pos][1] in ('like', 'ilike') and args[pos][2]:
if args[pos][0] == 'journal_id':
if not args[pos][2]:
if (not (jour.account_
pos += 1
if context and context.
ids = super(account_
for consolidate_child in self.browse(cr, uid, context[
return ids
return super(account_
See that line:
args[pos] = ('code', '=like', str(args[
I want to change this line like this:
args[pos] = ('code', '=like', u'%s%%' % args[pos]