コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3760 ビュー

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
3506
2
9月 16
8958
1
3月 15
7070
1
3月 15
6145
2
3月 24
1748