Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3763 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 11 23
3511
2
thg 9 16
8963
1
thg 3 15
7070
1
thg 3 15
6149
2
thg 3 24
1748