Thank you for your reply, I tried the code, but even it does not work, this is a very peculiar problem because if I want to filter other data it works for example items.
This problem only happens with the customers, I do not know how to filter them.
OK, problem solved. Now filter per field called gira in customers
We need to edit the file:
/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/queries.py -->Like this