Fallback to searching on rec_name for fmany2one only when value is a string
Like Many2One field, the implicit rec_name search should only apply to string value otherwise it is on the target id.
Like Many2One field, the implicit rec_name search should only apply to string value otherwise it is on the target id.