Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
12665 มุมมอง

how to search fnct serch method..

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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])]

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน

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