{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/vertical-medical/pulls/comments/37625598","id":37625598,"diff_hunk":"@@ -60,7 +60,7 @@ class ResPartner(orm.Model):\n         'ref': fields.char(size=256, string='ID/SSN',\n                            help='Patient Social Security Number or '\n                            'equivalent'),\n-        'patient_ids': fields.one2many('medical.patient.med.center.rel',\n-                                       'medical_center_id',\n-                                       'Related Patients'),\n+        'patient_ids': fields.one2many(\n+            'medical.patient', fields_id='medical_center_id',\n+            string='Related Patients'),","path":"medical/models/res_partner.py","position":9,"original_position":9,"commit_id":"cdb645036c8078ed08989bdd2e01dde242138856","original_commit_id":"cdb645036c8078ed08989bdd2e01dde242138856","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},"body":"index=True","created_at":"2015-08-21T11:17:23Z","updated_at":"2015-08-21T11:17:23Z","html_url":"https://github.com/OCA/vertical-medical/pull/27#discussion_r37625598","pull_request_url":"https://api.github.com/repos/OCA/vertical-medical/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/comments/37625598"},"html":{"href":"https://github.com/OCA/vertical-medical/pull/27#discussion_r37625598"},"pull_request":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/vertical-medical/pulls/27","id":42333225,"html_url":"https://github.com/OCA/vertical-medical/pull/27","diff_url":"https://github.com/OCA/vertical-medical/pull/27.diff","patch_url":"https://github.com/OCA/vertical-medical/pull/27.patch","issue_url":"https://api.github.com/repos/OCA/vertical-medical/issues/27","number":27,"state":"open","locked":false,"title":"[8.0][IMP] Medical Patient","user":{"login":"JonathanNEMRY","id":7601731,"avatar_url":"https://avatars.githubusercontent.com/u/7601731?v=3","gravatar_id":"","url":"https://api.github.com/users/JonathanNEMRY","html_url":"https://github.com/JonathanNEMRY","followers_url":"https://api.github.com/users/JonathanNEMRY/followers","following_url":"https://api.github.com/users/JonathanNEMRY/following{/other_user}","gists_url":"https://api.github.com/users/JonathanNEMRY/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanNEMRY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanNEMRY/subscriptions","organizations_url":"https://api.github.com/users/JonathanNEMRY/orgs","repos_url":"https://api.github.com/users/JonathanNEMRY/repos","events_url":"https://api.github.com/users/JonathanNEMRY/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanNEMRY/received_events","type":"User","site_admin":false},"body":"This PR depends on #22 and start with d369a79c11a0b8c11f26eab1aa4c185b03803d99\r\n- [x] Review the view of medical patient to make it more simple and legible\r\n- [x] Migration into new api\r\n- [x] Replace \"MedicalPatientMedCenterRel\" with a \"one2many + domain\" between partner and medical patient and adapt patient view\r\n- [x] Add a description into patient\r\n- [x] Use method for selection field\r\n- [x] Review compute age and add missing \"_\" for translation\r\n- [x] Use DEFAULT_SERVER_DATE instead of static format\r\n- [x] Add a national_number on patient","created_at":"2015-08-13T10:01:25Z","updated_at":"2015-08-21T11:17:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28498832b6e64e3b6593af730f88c3c217ee80e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/vertical-medical/pulls/27/commits","review_comments_url":"https://api.github.com/repos/OCA/vertical-medical/pulls/27/comments","review_comment_url":"https://api.github.com/repos/OCA/vertical-medical/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/vertical-medical/issues/27/comments","statuses_url":"https://api.github.com/repos/OCA/vertical-medical/statuses/cdb645036c8078ed08989bdd2e01dde242138856","head":{"label":"acsone:8.0-incubator_imp_patient-jne","ref":"8.0-incubator_imp_patient-jne","sha":"cdb645036c8078ed08989bdd2e01dde242138856","user":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"repo":{"id":29350698,"name":"vertical-medical","full_name":"acsone/vertical-medical","owner":{"login":"acsone","id":7601056,"avatar_url":"https://avatars.githubusercontent.com/u/7601056?v=3","gravatar_id":"","url":"https://api.github.com/users/acsone","html_url":"https://github.com/acsone","followers_url":"https://api.github.com/users/acsone/followers","following_url":"https://api.github.com/users/acsone/following{/other_user}","gists_url":"https://api.github.com/users/acsone/gists{/gist_id}","starred_url":"https://api.github.com/users/acsone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsone/subscriptions","organizations_url":"https://api.github.com/users/acsone/orgs","repos_url":"https://api.github.com/users/acsone/repos","events_url":"https://api.github.com/users/acsone/events{/privacy}","received_events_url":"https://api.github.com/users/acsone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acsone/vertical-medical","description":"Open Source Health care system","fork":true,"url":"https://api.github.com/repos/acsone/vertical-medical","forks_url":"https://api.github.com/repos/acsone/vertical-medical/forks","keys_url":"https://api.github.com/repos/acsone/vertical-medical/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsone/vertical-medical/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsone/vertical-medical/teams","hooks_url":"https://api.github.com/repos/acsone/vertical-medical/hooks","issue_events_url":"https://api.github.com/repos/acsone/vertical-medical/issues/events{/number}","events_url":"https://api.github.com/repos/acsone/vertical-medical/events","assignees_url":"https://api.github.com/repos/acsone/vertical-medical/assignees{/user}","branches_url":"https://api.github.com/repos/acsone/vertical-medical/branches{/branch}","tags_url":"https://api.github.com/repos/acsone/vertical-medical/tags","blobs_url":"https://api.github.com/repos/acsone/vertical-medical/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsone/vertical-medical/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsone/vertical-medical/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsone/vertical-medical/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsone/vertical-medical/statuses/{sha}","languages_url":"https://api.github.com/repos/acsone/vertical-medical/languages","stargazers_url":"https://api.github.com/repos/acsone/vertical-medical/stargazers","contributors_url":"https://api.github.com/repos/acsone/vertical-medical/contributors","subscribers_url":"https://api.github.com/repos/acsone/vertical-medical/subscribers","subscription_url":"https://api.github.com/repos/acsone/vertical-medical/subscription","commits_url":"https://api.github.com/repos/acsone/vertical-medical/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsone/vertical-medical/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsone/vertical-medical/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsone/vertical-medical/issues/comments{/number}","contents_url":"https://api.github.com/repos/acsone/vertical-medical/contents/{+path}","compare_url":"https://api.github.com/repos/acsone/vertical-medical/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsone/vertical-medical/merges","archive_url":"https://api.github.com/repos/acsone/vertical-medical/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsone/vertical-medical/downloads","issues_url":"https://api.github.com/repos/acsone/vertical-medical/issues{/number}","pulls_url":"https://api.github.com/repos/acsone/vertical-medical/pulls{/number}","milestones_url":"https://api.github.com/repos/acsone/vertical-medical/milestones{/number}","notifications_url":"https://api.github.com/repos/acsone/vertical-medical/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsone/vertical-medical/labels{/name}","releases_url":"https://api.github.com/repos/acsone/vertical-medical/releases{/id}","created_at":"2015-01-16T14:02:39Z","updated_at":"2015-01-16T14:02:40Z","pushed_at":"2015-08-21T11:07:25Z","git_url":"git://github.com/acsone/vertical-medical.git","ssh_url":"git@github.com:acsone/vertical-medical.git","clone_url":"https://github.com/acsone/vertical-medical.git","svn_url":"https://github.com/acsone/vertical-medical","homepage":"http://medical.odoo.com","size":4358,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"8.0"}},"base":{"label":"OCA:8.0-incubator","ref":"8.0-incubator","sha":"a5a8d4b11e473b1e61b072075c0c6ac9eb348e56","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":21203152,"name":"vertical-medical","full_name":"OCA/vertical-medical","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/vertical-medical","description":"Open Source Health care system","fork":false,"url":"https://api.github.com/repos/OCA/vertical-medical","forks_url":"https://api.github.com/repos/OCA/vertical-medical/forks","keys_url":"https://api.github.com/repos/OCA/vertical-medical/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/vertical-medical/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/vertical-medical/teams","hooks_url":"https://api.github.com/repos/OCA/vertical-medical/hooks","issue_events_url":"https://api.github.com/repos/OCA/vertical-medical/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/vertical-medical/events","assignees_url":"https://api.github.com/repos/OCA/vertical-medical/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/vertical-medical/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/vertical-medical/tags","blobs_url":"https://api.github.com/repos/OCA/vertical-medical/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/vertical-medical/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/vertical-medical/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/vertical-medical/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/vertical-medical/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/vertical-medical/languages","stargazers_url":"https://api.github.com/repos/OCA/vertical-medical/stargazers","contributors_url":"https://api.github.com/repos/OCA/vertical-medical/contributors","subscribers_url":"https://api.github.com/repos/OCA/vertical-medical/subscribers","subscription_url":"https://api.github.com/repos/OCA/vertical-medical/subscription","commits_url":"https://api.github.com/repos/OCA/vertical-medical/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/vertical-medical/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/vertical-medical/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/vertical-medical/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/vertical-medical/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/vertical-medical/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/vertical-medical/merges","archive_url":"https://api.github.com/repos/OCA/vertical-medical/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/vertical-medical/downloads","issues_url":"https://api.github.com/repos/OCA/vertical-medical/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/vertical-medical/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/vertical-medical/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/vertical-medical/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/vertical-medical/labels{/name}","releases_url":"https://api.github.com/repos/OCA/vertical-medical/releases{/id}","created_at":"2014-06-25T12:57:22Z","updated_at":"2015-08-01T13:13:33Z","pushed_at":"2015-08-21T11:07:26Z","git_url":"git://github.com/OCA/vertical-medical.git","ssh_url":"git@github.com:OCA/vertical-medical.git","clone_url":"https://github.com/OCA/vertical-medical.git","svn_url":"https://github.com/OCA/vertical-medical","homepage":"","size":5233,"stargazers_count":31,"watchers_count":31,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":10,"forks":54,"open_issues":10,"watchers":31,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/27"},"html":{"href":"https://github.com/OCA/vertical-medical/pull/27"},"issue":{"href":"https://api.github.com/repos/OCA/vertical-medical/issues/27"},"comments":{"href":"https://api.github.com/repos/OCA/vertical-medical/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/vertical-medical/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/vertical-medical/statuses/cdb645036c8078ed08989bdd2e01dde242138856"}}}}