{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/connector/issues/153","labels_url":"https://api.github.com/repos/OCA/connector/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/OCA/connector/issues/153/comments","events_url":"https://api.github.com/repos/OCA/connector/issues/153/events","html_url":"https://github.com/OCA/connector/pull/153","id":119686921,"number":153,"title":"Fix backend_to_m2o to extract id of the binding","user":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OCA/connector/labels/needs%20fixing","name":"needs fixing","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-01T10:23:01Z","updated_at":"2015-12-01T16:35:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/connector/pulls/153","html_url":"https://github.com/OCA/connector/pull/153","diff_url":"https://github.com/OCA/connector/pull/153.diff","patch_url":"https://github.com/OCA/connector/pull/153.patch"},"body":"The default binder returns a recordset of one record since 41561c8 so\nbackend_to_m2o should extract the Id from it."},"comment":{"url":"https://api.github.com/repos/OCA/connector/issues/comments/161024261","html_url":"https://github.com/OCA/connector/pull/153#issuecomment-161024261","issue_url":"https://api.github.com/repos/OCA/connector/issues/153","id":161024261,"user":{"login":"lmignon","id":544090,"avatar_url":"https://avatars.githubusercontent.com/u/544090?v=3","gravatar_id":"","url":"https://api.github.com/users/lmignon","html_url":"https://github.com/lmignon","followers_url":"https://api.github.com/users/lmignon/followers","following_url":"https://api.github.com/users/lmignon/following{/other_user}","gists_url":"https://api.github.com/users/lmignon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmignon/subscriptions","organizations_url":"https://api.github.com/users/lmignon/orgs","repos_url":"https://api.github.com/users/lmignon/repos","events_url":"https://api.github.com/users/lmignon/events{/privacy}","received_events_url":"https://api.github.com/users/lmignon/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T16:35:52Z","updated_at":"2015-12-01T16:35:52Z","body":"@guewen In your type-check IMO it would be nice to warn through a 'deprecation' message in the log if the type is not a recordset. We can thus detect and fix the places where the code is not consistent without breaking current installations."}}