Hide fields from advanced search
This commit is contained in:
parent
177e51dbaf
commit
5a693092db
|
|
@ -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.")
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue