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

I can use following code to remove  a field from Custom Filter:

@api.model
def fields_get(self, allfields=None, attributes=None):
    res = super(HrEmployee, self).fields_get(allfields=allfields, attributes=attributes)
    fields_not_search = ['id']
    for field in fields_not_search:
        res[field]['searchable'] = False
    return res
And then I wonder if there is any way to remove a field from Custom Group.I think I should

replace"['searchable']" by somewhat but I don't know what it is.

Thanks

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

Hi,
Hope this helps: https://www.odoo.com/fr_FR/forum/aide-1/question/hide-fields-in-filters-and-group-by-148021

อวตาร
ละทิ้ง