Hello everyone,
I need your help on hiding some technical fields from filter options under search views and if possible from the "Export" option available on the system in Odoo 12.
Please refer to the following images for a better understanding of my needs.
https://ibb.co/2yTjzwx
https://ibb.co/0YP6pS0
The first image is from filters option from search views and the second is from Odoo standard Export form available on several models.
Based on the above images, I want to hide some of the available fields.
Is there any way I can achieve that?
Thank you very much in advance
Best regards
PM
Try this method to hide fields from Filters.
@api.model
def fields_get(self, fields=None):
hide = ['field 1','field 2','field 3']
res = super(ClassName, self).fields_get()
for field in hide:
res[field]['selectable'] = False
return res