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

how to search fnct serch method..

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello,

fnct_search implements the search operation for the function field.

The following link will helps you more,

More about fnct_search

Thanks,

Serpent Consulting Services.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

fnct_search: function used to search on this field

def fnct_search(obj, cr, uid, obj, name, args)

      returns a list of tuples arguments for search(), e.g. [('id','in',[1,3,5])]

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

It is needed to search non-stored function fields as OpenERP can not query the database on something that is not stored. (e.g. to use in filters) See the doc.openerp.com.

Ảnh đại diện
Huỷ bỏ
Tác giả

I knw that is dummy field but how to make filter on that field...