diff options
| author | Quentin THEURET <quentin@tempo-quentin> | 2011-02-28 10:34:50 +0100 |
|---|---|---|
| committer | Quentin THEURET <quentin@tempo-quentin> | 2011-02-28 10:34:50 +0100 |
| commit | 00f0b7d9affc8486cb8e4ee2028154e0ab75e5ce (patch) | |
| tree | 2b11b5e0630e8e67b4d4587d82aa1225852c1831 | |
| parent | 1bfe6c8df9910a527f93ac3e8906f96185330a91 (diff) | |
[FIX] Fix the name_search method of product_product
lp bug: https://launchpad.net/bugs/726415 fixed
bzr revid: quentin@tempo-quentin-20110228093450-pffa9txsgza5eamm
| -rw-r--r-- | addons/product/product.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/product.py b/addons/product/product.py index 801e647e3f2..6460131e0ed 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -557,7 +557,7 @@ class product_product(osv.osv): if not args: args=[] if name: - ids = self.search(cr, user, [('default_code',operator,name)]+ args, limit=limit, context=context) + ids = self.search(cr, user, [('default_code','=',name)]+ args, limit=limit, context=context) if not len(ids): ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context) if not len(ids): |
