{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/10738","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/10738/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/10738/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/10738/events","html_url":"https://github.com/odoo/odoo/pull/10738","id":130726290,"number":10738,"title":"[FIX] search one2many fields with inherited inverse","user":{"login":"hbrunn","id":2563186,"avatar_url":"https://avatars.githubusercontent.com/u/2563186?v=3","gravatar_id":"","url":"https://api.github.com/users/hbrunn","html_url":"https://github.com/hbrunn","followers_url":"https://api.github.com/users/hbrunn/followers","following_url":"https://api.github.com/users/hbrunn/following{/other_user}","gists_url":"https://api.github.com/users/hbrunn/gists{/gist_id}","starred_url":"https://api.github.com/users/hbrunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbrunn/subscriptions","organizations_url":"https://api.github.com/users/hbrunn/orgs","repos_url":"https://api.github.com/users/hbrunn/repos","events_url":"https://api.github.com/users/hbrunn/events{/privacy}","received_events_url":"https://api.github.com/users/hbrunn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-02T15:58:45Z","updated_at":"2016-02-05T18:11:21Z","closed_at":"2016-02-04T16:37:54Z","pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/10738","html_url":"https://github.com/odoo/odoo/pull/10738","diff_url":"https://github.com/odoo/odoo/pull/10738.diff","patch_url":"https://github.com/odoo/odoo/pull/10738.patch"},"body":"The code `self.env['res.users'].search([('employee_ids', 'in', [42])])` (field `employee_ids` is introduced by the `hr` module) fails if employee 42 exists but has no user. The original code then wants to fetch unique user ids from `hr_employee`, but the field is inherited from resource.resource and lives in `resource_resource`."},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/180477255","html_url":"https://github.com/odoo/odoo/pull/10738#issuecomment-180477255","issue_url":"https://api.github.com/repos/odoo/odoo/issues/10738","id":180477255,"user":{"login":"odony","id":2039870,"avatar_url":"https://avatars.githubusercontent.com/u/2039870?v=3","gravatar_id":"","url":"https://api.github.com/users/odony","html_url":"https://github.com/odony","followers_url":"https://api.github.com/users/odony/followers","following_url":"https://api.github.com/users/odony/following{/other_user}","gists_url":"https://api.github.com/users/odony/gists{/gist_id}","starred_url":"https://api.github.com/users/odony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odony/subscriptions","organizations_url":"https://api.github.com/users/odony/orgs","repos_url":"https://api.github.com/users/odony/repos","events_url":"https://api.github.com/users/odony/events{/privacy}","received_events_url":"https://api.github.com/users/odony/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T18:11:21Z","updated_at":"2016-02-05T18:11:21Z","body":"For the record, it was forward-ported to 8.0 by bc26a49194a6d4e3edac030188322d0879cea552"}}