```
@api.model
def _name_search(self, name, args=None, operator='ilike', limit=100, name_get_uid=None):
if operator in ('ilike', 'like', '=', '=like', '=ilike'):
args = expression.AND([ args or [], ['|', ('visitor.id_proof_no', operator, name), ('visitor', operator, name)] ])
return super(VisitDetails, self)._name_search(name, args=args, operator=operator, limit=limit, name_get_uid=name_get_uid)
```
its working fine on Name but not search on id_proof_no ......
name is like XYZ and id_proof_no is = 33333333333333
id_proof_no and name both are Char fields
in which class you have added id_proof_no, if it is in same class visitDetails than no need to add visitor.id_proof_no just add id_proof_no in domain. Second thing if id_proof_no is integer field, so make sure you convert name into integer and than add into domain so it gives you proper result.
@Bhaviraj Brahmkshatriya
id_proof_no is char field and it is not in same class its on other class