{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/hr/pulls/comments/144805213","pull_request_review_id":69511792,"id":144805213,"diff_hunk":"@@ -0,0 +1,80 @@\n+# -*- coding: utf-8 -*-\n+# Copyright 2017 ACSONE SA/NV\n+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).\n+\n+from odoo import api, fields, models\n+\n+\n+class HrEmployeePassport(models.Model):\n+\n+    _name = 'hr.employee.passport'\n+    _inherit = 'mail.thread'\n+    _description = 'Employee Passport'\n+    _order = 'end_date desc'\n+\n+    name = fields.Char(\n+        compute='_compute_name',\n+        store=True,\n+    )\n+    description = fields.Char()\n+    employee_id = fields.Many2one(\n+        comodel_name='hr.employee',\n+        string=\"Employee\",\n+        required=True,\n+        ondelete='cascade',\n+    )\n+    end_date = fields.Date(\n+        string=\"Expiration date\",\n+        required=True,\n+        track_visibility='onchange',\n+    )\n+    passport_file = fields.Binary(\n+        string=\"Passport\",\n+        attachment=True,\n+        required=True,\n+        track_visibility='onchange',","path":"hr_employee_passport/models/hr_employee_passport.py","position":35,"original_position":35,"commit_id":"a2acba1f41436a141b27b0d0efd0a03a62ddec5e","original_commit_id":"a2acba1f41436a141b27b0d0efd0a03a62ddec5e","user":{"login":"adrienpeiffer","id":8035793,"avatar_url":"https://avatars1.githubusercontent.com/u/8035793?v=4","gravatar_id":"","url":"https://api.github.com/users/adrienpeiffer","html_url":"https://github.com/adrienpeiffer","followers_url":"https://api.github.com/users/adrienpeiffer/followers","following_url":"https://api.github.com/users/adrienpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/adrienpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienpeiffer/subscriptions","organizations_url":"https://api.github.com/users/adrienpeiffer/orgs","repos_url":"https://api.github.com/users/adrienpeiffer/repos","events_url":"https://api.github.com/users/adrienpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/adrienpeiffer/received_events","type":"User","site_admin":false},"body":"Remove this line","created_at":"2017-10-16T10:07:14Z","updated_at":"2017-10-16T10:12:29Z","html_url":"https://github.com/OCA/hr/pull/386#discussion_r144805213","pull_request_url":"https://api.github.com/repos/OCA/hr/pulls/386","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/OCA/hr/pulls/comments/144805213"},"html":{"href":"https://github.com/OCA/hr/pull/386#discussion_r144805213"},"pull_request":{"href":"https://api.github.com/repos/OCA/hr/pulls/386"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/hr/pulls/386","id":146720421,"html_url":"https://github.com/OCA/hr/pull/386","diff_url":"https://github.com/OCA/hr/pull/386.diff","patch_url":"https://github.com/OCA/hr/pull/386.patch","issue_url":"https://api.github.com/repos/OCA/hr/issues/386","number":386,"state":"open","locked":false,"title":"[ADD] Module to store employee passports","user":{"login":"benwillig","id":27724417,"avatar_url":"https://avatars3.githubusercontent.com/u/27724417?v=4","gravatar_id":"","url":"https://api.github.com/users/benwillig","html_url":"https://github.com/benwillig","followers_url":"https://api.github.com/users/benwillig/followers","following_url":"https://api.github.com/users/benwillig/following{/other_user}","gists_url":"https://api.github.com/users/benwillig/gists{/gist_id}","starred_url":"https://api.github.com/users/benwillig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwillig/subscriptions","organizations_url":"https://api.github.com/users/benwillig/orgs","repos_url":"https://api.github.com/users/benwillig/repos","events_url":"https://api.github.com/users/benwillig/events{/privacy}","received_events_url":"https://api.github.com/users/benwillig/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-16T08:11:23Z","updated_at":"2017-10-16T10:12:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95bbe77da45fd9eb8051cbf443dcdba3d0cc88b7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OCA/hr/pulls/386/commits","review_comments_url":"https://api.github.com/repos/OCA/hr/pulls/386/comments","review_comment_url":"https://api.github.com/repos/OCA/hr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/hr/issues/386/comments","statuses_url":"https://api.github.com/repos/OCA/hr/statuses/a2acba1f41436a141b27b0d0efd0a03a62ddec5e","head":{"label":"acsone:10.0-add_hr_employee_passport-bwi","ref":"10.0-add_hr_employee_passport-bwi","sha":"a2acba1f41436a141b27b0d0efd0a03a62ddec5e","user":{"login":"acsone","id":7601056,"avatar_url":"https://avatars2.githubusercontent.com/u/7601056?v=4","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":37725915,"name":"hr","full_name":"acsone/hr","owner":{"login":"acsone","id":7601056,"avatar_url":"https://avatars2.githubusercontent.com/u/7601056?v=4","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/hr","description":"Odoo Human Ressources Addons","fork":true,"url":"https://api.github.com/repos/acsone/hr","forks_url":"https://api.github.com/repos/acsone/hr/forks","keys_url":"https://api.github.com/repos/acsone/hr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsone/hr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsone/hr/teams","hooks_url":"https://api.github.com/repos/acsone/hr/hooks","issue_events_url":"https://api.github.com/repos/acsone/hr/issues/events{/number}","events_url":"https://api.github.com/repos/acsone/hr/events","assignees_url":"https://api.github.com/repos/acsone/hr/assignees{/user}","branches_url":"https://api.github.com/repos/acsone/hr/branches{/branch}","tags_url":"https://api.github.com/repos/acsone/hr/tags","blobs_url":"https://api.github.com/repos/acsone/hr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsone/hr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsone/hr/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsone/hr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsone/hr/statuses/{sha}","languages_url":"https://api.github.com/repos/acsone/hr/languages","stargazers_url":"https://api.github.com/repos/acsone/hr/stargazers","contributors_url":"https://api.github.com/repos/acsone/hr/contributors","subscribers_url":"https://api.github.com/repos/acsone/hr/subscribers","subscription_url":"https://api.github.com/repos/acsone/hr/subscription","commits_url":"https://api.github.com/repos/acsone/hr/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsone/hr/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsone/hr/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsone/hr/issues/comments{/number}","contents_url":"https://api.github.com/repos/acsone/hr/contents/{+path}","compare_url":"https://api.github.com/repos/acsone/hr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsone/hr/merges","archive_url":"https://api.github.com/repos/acsone/hr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsone/hr/downloads","issues_url":"https://api.github.com/repos/acsone/hr/issues{/number}","pulls_url":"https://api.github.com/repos/acsone/hr/pulls{/number}","milestones_url":"https://api.github.com/repos/acsone/hr/milestones{/number}","notifications_url":"https://api.github.com/repos/acsone/hr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsone/hr/labels{/name}","releases_url":"https://api.github.com/repos/acsone/hr/releases{/id}","deployments_url":"https://api.github.com/repos/acsone/hr/deployments","created_at":"2015-06-19T14:21:35Z","updated_at":"2016-01-24T00:01:50Z","pushed_at":"2017-10-16T08:59:06Z","git_url":"git://github.com/acsone/hr.git","ssh_url":"git@github.com:acsone/hr.git","clone_url":"https://github.com/acsone/hr.git","svn_url":"https://github.com/acsone/hr","homepage":"","size":9182,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"8.0"}},"base":{"label":"OCA:10.0","ref":"10.0","sha":"62b785f3535bffdc20501a8fbf1b38252fad9dad","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars1.githubusercontent.com/u/7600578?v=4","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":20891607,"name":"hr","full_name":"OCA/hr","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars1.githubusercontent.com/u/7600578?v=4","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/hr","description":"Odoo Human Resources Addons","fork":false,"url":"https://api.github.com/repos/OCA/hr","forks_url":"https://api.github.com/repos/OCA/hr/forks","keys_url":"https://api.github.com/repos/OCA/hr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/hr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/hr/teams","hooks_url":"https://api.github.com/repos/OCA/hr/hooks","issue_events_url":"https://api.github.com/repos/OCA/hr/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/hr/events","assignees_url":"https://api.github.com/repos/OCA/hr/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/hr/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/hr/tags","blobs_url":"https://api.github.com/repos/OCA/hr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/hr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/hr/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/hr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/hr/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/hr/languages","stargazers_url":"https://api.github.com/repos/OCA/hr/stargazers","contributors_url":"https://api.github.com/repos/OCA/hr/contributors","subscribers_url":"https://api.github.com/repos/OCA/hr/subscribers","subscription_url":"https://api.github.com/repos/OCA/hr/subscription","commits_url":"https://api.github.com/repos/OCA/hr/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/hr/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/hr/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/hr/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/hr/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/hr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/hr/merges","archive_url":"https://api.github.com/repos/OCA/hr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/hr/downloads","issues_url":"https://api.github.com/repos/OCA/hr/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/hr/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/hr/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/hr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/hr/labels{/name}","releases_url":"https://api.github.com/repos/OCA/hr/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/hr/deployments","created_at":"2014-06-16T16:15:34Z","updated_at":"2017-10-12T16:20:33Z","pushed_at":"2017-10-16T09:51:20Z","git_url":"git://github.com/OCA/hr.git","ssh_url":"git@github.com:OCA/hr.git","clone_url":"https://github.com/OCA/hr.git","svn_url":"https://github.com/OCA/hr","homepage":"","size":11221,"stargazers_count":53,"watchers_count":53,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"open_issues_count":79,"forks":194,"open_issues":79,"watchers":53,"default_branch":"11.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/hr/pulls/386"},"html":{"href":"https://github.com/OCA/hr/pull/386"},"issue":{"href":"https://api.github.com/repos/OCA/hr/issues/386"},"comments":{"href":"https://api.github.com/repos/OCA/hr/issues/386/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/hr/pulls/386/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/hr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/hr/pulls/386/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/hr/statuses/a2acba1f41436a141b27b0d0efd0a03a62ddec5e"}},"author_association":"NONE"}}
{"actor":{"display_login":"adrienpeiffer"}}