Skip to content

Commit

Permalink
[fix]属性ean搜索 全匹配
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonAxesen committed Sep 8, 2016
1 parent 1744158 commit a7c2d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goods/goods.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def name_search(self, name='', args=None, operator='ilike', limit=100):
'''在many2one字段中支持按条形码搜索'''
args = args or []
if name:
goods_ids = self.search([('ean', 'ilike', name)])
goods_ids = self.search([('ean', '=', name)])
if goods_ids:
return goods_ids.name_get()
return super(attribute, self).name_search(
Expand Down

0 comments on commit a7c2d0b

Please sign in to comment.