Merge lp:~openerp-dev/openobject-addons/6.1-opw-583958-msh into lp:openobject-addons/6.1

Proposed by Mohammed Shekha(Open ERP)
Status: Rejected
Rejected by: Chris Biersbach (OpenERP)
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-583958-msh
Merge into: lp:openobject-addons/6.1
Diff against target: 15 lines (+4/-1)
1 file modified
account/account.py (+4/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-583958-msh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+142451@code.launchpad.net

Description of the change

Hello,

Fixed the issue of unicode characters not supported in many2one of account.account.

Demo :- Goto Product -> Accounting tab -> enter uncide character like 'Alınan Çe' in 'property_account_income' or 'property_account_expense' many2one which going to call search and search is overridden in account.account model which cause the problem.

Thanks.

To post a comment you must log in.
7128. By Mohammed Shekha<email address hidden>

[FIX]Refixed, missed else clause

Revision history for this message
Chris Biersbach (OpenERP) (cbi-openerp) wrote :

I am rejecting this because 6.1 is not an LTS; and this is not reproducible in OpenERP 7.

Unmerged revisions

7128. By Mohammed Shekha<email address hidden>

[FIX]Refixed, missed else clause

7127. By Mohammed Shekha<email address hidden>

[FIX]Fixed the issue of unicode characters not supported in many2one of account.account.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2012-10-09 09:58:14 +0000
3+++ account/account.py 2013-01-09 08:16:22 +0000
4@@ -223,7 +223,10 @@
5 while pos < len(args):
6
7 if args[pos][0] == 'code' and args[pos][1] in ('like', 'ilike') and args[pos][2]:
8- args[pos] = ('code', '=like', str(args[pos][2].replace('%', ''))+'%')
9+ if not isinstance(args[pos][2], basestring):
10+ args[pos] = ('code', '=like', str(args[pos][2]).replace('%', '')+'%')
11+ else:
12+ args[pos] = ('code', '=like', args[pos][2].replace('%', '')+'%')
13 if args[pos][0] == 'journal_id':
14 if not args[pos][2]:
15 del args[pos]