Merge lp:~unifield-team/unifield-addons/OEB-15 into lp:unifield-addons

Proposed by Matthieu Dietrich @ camptocamp
Status: Merged
Merged at revision: 4476
Proposed branch: lp:~unifield-team/unifield-addons/OEB-15
Merge into: lp:unifield-addons
Diff against target: 13 lines (+1/-2)
1 file modified
product/product.py (+1/-2)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/OEB-15
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+65201@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'product/product.py'
2--- product/product.py 2011-03-10 09:52:25 +0000
3+++ product/product.py 2011-06-20 14:09:26 +0000
4@@ -563,8 +563,7 @@
5 if not len(ids):
6 ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context)
7 if not len(ids):
8- ids = self.search(cr, user, [('default_code',operator,name)]+ args, limit=limit, context=context)
9- ids += self.search(cr, user, [('name',operator,name)]+ args, limit=limit, context=context)
10+ ids = self.search(cr, user, ['|',('name',operator,name),('default_code',operator,name)] + args, limit=limit, context=context)
11 if not len(ids):
12 ptrn=re.compile('(\[(.*?)\])')
13 res = ptrn.search(name)

Subscribers

People subscribed via source and target branches

to all changes: