Skip to Content
Menu
This question has been flagged
3787 Rodiniai

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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
lapkr. 23
3526
2
rugs. 16
8993
1
kov. 15
7075
1
kov. 15
6181
2
kov. 24
1757