跳至内容
菜单
此问题已终结
4101 查看

Hi All,

Hope everyone is good. I need to add a new field in product search such as description or color. So i have modified name_search function as like below in product.py

if not ids: ids = self.search(cr, user, [('color','=',name)] + args, limit=limit, context=context)

after the following line:

if not ids: ids = self.search(cr, user, [('ean13','=',name)]+ args, limit=limit, context=context)

But its not working. Pls help on this.

形象
丢弃
相关帖文 回复 查看 活动
4
11月 23
4009
2
9月 16
9373
1
3月 15
7529
1
3月 15
6512
2
3月 24
2169