Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3888 Zobrazení

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
lis 23
3686
2
zář 16
9122
1
bře 15
7204
1
bře 15
6261
2
bře 24
1883