If a res.user belongs to a company_id that the current user has no access to, perm_read() wouldn't be able to return results (but exception). Now, just skip the uid->login resolution and return the numeric value instead. bzr revid: p_christ@hol.gr-20101123135654-bslxfv93p10216d3