How to add field in advanced search? [SOLVED]

Technical aspects, customization, code samples.
Post Reply
omar
Posts: 5
Joined: Sun Mar 08, 2020 2:11 pm

How to add field in advanced search? [SOLVED]

Post by omar »

Hello,

I want to add more search fields in advanced search page. Which file(s) should I customize?

Thanks in advance.

User avatar
franco
Developer
Developer
Posts: 29
Joined: Sun Apr 05, 2020 2:30 am

Re: How to add field in advanced search?

Post by franco »

Find the search.py module for the app that has the model you want to add more fields to.

For example => For Tags.
Edit => https://gitlab.com/mayan-edms/mayan-edm ... /search.py

If you have a fictional tag field called "location", make the change:

Code: Select all

tag_search.add_model_field(
    field='location', label=_('Location')
)

Post Reply