Hide fields from advanced search

This commit is contained in:
younes 2025-06-17 20:57:46 +01:00
parent 177e51dbaf
commit 5a693092db
2 changed files with 3 additions and 3 deletions

View File

@ -15,5 +15,5 @@ class hide_field(models.Model):
readonly = fields.Boolean('Read-Only', help="Selected Field will be Read only in selected model from the defined users.")
required = fields.Boolean('Required', help="Selected Field will be set as required for selected model from the defined users.")
external_link = fields.Boolean('Remove External Link',help="External Link will be hidden for relational fields in selected model from the defined users.")
# remove_from_custom_filter = fields.Boolean('Remove From Custom Filter',
# help="Hide this field from the filter/group-by dropdown in the search view.")
remove_from_custom_filter = fields.Boolean('Remove From Custom Filter',
help="Hide this field from the filter/group-by dropdown in the search view.")

View File

@ -144,7 +144,7 @@
attrs="{'column_invisible' : [('parent.readonly','=',True)]}"/>
<field name="required" width='10'/>
<field name="external_link" width='10'/>
<!-- <field name="remove_from_custom_filter" width='10'/>-->
<field name="remove_from_custom_filter" width='10'/>
</tree>
</field>
<p role="alert"