{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/l10n-france/pulls/comments/26025775","id":26025775,"diff_hunk":"@@ -0,0 +1,34 @@\n+# -*- encoding: utf-8 -*-\n+##############################################################################\n+#\n+#    OpenERP, Open Source Management Solution\n+#    Copyright (C) 2011 Numérigraphe SARL.\n+#\n+#    This program is free software: you can redistribute it and/or modify\n+#    it under the terms of the GNU Affero General Public License as\n+#    published by the Free Software Foundation, either version 3 of the\n+#    License, or (at your option) any later version.\n+#\n+#    This program is distributed in the hope that it will be useful,\n+#    but WITHOUT ANY WARRANTY; without even the implied warranty of\n+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+#    GNU Affero General Public License for more details.\n+#\n+#    You should have received a copy of the GNU Affero General Public License\n+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+#\n+##############################################################################\n+\n+from openerp.osv import osv, fields\n+\n+\n+class Partner(osv.Model):\n+    \"\"\"Add the French APE (official main activity of the company)\"\"\"\n+    _inherit = 'res.partner'\n+    _columns = {\n+        'ape_id': fields.many2one(\n+            'res.partner.category', 'APE',\n+            help=\"If the partner is a French company, enter it's official \"\n+                 \"main activity in this field. The APE is chosen among the \"\n+                 \"NAF nomenclature.\"),\n+    }","path":"l10n_fr_naf_ape/partner.py","position":34,"original_position":34,"commit_id":"578f3181df8c1283d3fcd361adb7cdcae6cd515b","original_commit_id":"578f3181df8c1283d3fcd361adb7cdcae6cd515b","user":{"login":"clonedagain","id":391953,"avatar_url":"https://avatars.githubusercontent.com/u/391953?v=3","gravatar_id":"","url":"https://api.github.com/users/clonedagain","html_url":"https://github.com/clonedagain","followers_url":"https://api.github.com/users/clonedagain/followers","following_url":"https://api.github.com/users/clonedagain/following{/other_user}","gists_url":"https://api.github.com/users/clonedagain/gists{/gist_id}","starred_url":"https://api.github.com/users/clonedagain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clonedagain/subscriptions","organizations_url":"https://api.github.com/users/clonedagain/orgs","repos_url":"https://api.github.com/users/clonedagain/repos","events_url":"https://api.github.com/users/clonedagain/events{/privacy}","received_events_url":"https://api.github.com/users/clonedagain/received_events","type":"User","site_admin":false},"body":"At the moment I don't think so, since the field is hidden for non-company contacts. But if someone has a use for it I wouldn't block their PR.","created_at":"2015-03-09T10:36:30Z","updated_at":"2015-03-09T10:36:30Z","html_url":"https://github.com/OCA/l10n-france/pull/3#discussion_r26025775","pull_request_url":"https://api.github.com/repos/OCA/l10n-france/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/comments/26025775"},"html":{"href":"https://github.com/OCA/l10n-france/pull/3#discussion_r26025775"},"pull_request":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/l10n-france/pulls/3","id":25670275,"html_url":"https://github.com/OCA/l10n-france/pull/3","diff_url":"https://github.com/OCA/l10n-france/pull/3.diff","patch_url":"https://github.com/OCA/l10n-france/pull/3.patch","issue_url":"https://api.github.com/repos/OCA/l10n-france/issues/3","number":3,"state":"open","locked":false,"title":"[ADD] l10n_fr_naf_ape from community-data-files","user":{"login":"clonedagain","id":391953,"avatar_url":"https://avatars.githubusercontent.com/u/391953?v=3","gravatar_id":"","url":"https://api.github.com/users/clonedagain","html_url":"https://github.com/clonedagain","followers_url":"https://api.github.com/users/clonedagain/followers","following_url":"https://api.github.com/users/clonedagain/following{/other_user}","gists_url":"https://api.github.com/users/clonedagain/gists{/gist_id}","starred_url":"https://api.github.com/users/clonedagain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clonedagain/subscriptions","organizations_url":"https://api.github.com/users/clonedagain/orgs","repos_url":"https://api.github.com/users/clonedagain/repos","events_url":"https://api.github.com/users/clonedagain/events{/privacy}","received_events_url":"https://api.github.com/users/clonedagain/received_events","type":"User","site_admin":false},"body":"Module moved from the OCA repository community-data-files.\r\nFirst step to fix #1 .\r\nThe module works as-is on v8. README file added.","created_at":"2014-12-08T14:45:40Z","updated_at":"2015-03-09T10:36:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02400bc57426f53fe35cadfc88ddb87e8a2fead6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/l10n-france/pulls/3/commits","review_comments_url":"https://api.github.com/repos/OCA/l10n-france/pulls/3/comments","review_comment_url":"https://api.github.com/repos/OCA/l10n-france/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/l10n-france/issues/3/comments","statuses_url":"https://api.github.com/repos/OCA/l10n-france/statuses/578f3181df8c1283d3fcd361adb7cdcae6cd515b","head":{"label":"numerigraphe:8.0-add-naf-nace","ref":"8.0-add-naf-nace","sha":"578f3181df8c1283d3fcd361adb7cdcae6cd515b","user":{"login":"numerigraphe","id":7725011,"avatar_url":"https://avatars.githubusercontent.com/u/7725011?v=3","gravatar_id":"","url":"https://api.github.com/users/numerigraphe","html_url":"https://github.com/numerigraphe","followers_url":"https://api.github.com/users/numerigraphe/followers","following_url":"https://api.github.com/users/numerigraphe/following{/other_user}","gists_url":"https://api.github.com/users/numerigraphe/gists{/gist_id}","starred_url":"https://api.github.com/users/numerigraphe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numerigraphe/subscriptions","organizations_url":"https://api.github.com/users/numerigraphe/orgs","repos_url":"https://api.github.com/users/numerigraphe/repos","events_url":"https://api.github.com/users/numerigraphe/events{/privacy}","received_events_url":"https://api.github.com/users/numerigraphe/received_events","type":"Organization","site_admin":false},"repo":{"id":27719105,"name":"l10n-france","full_name":"numerigraphe/l10n-france","owner":{"login":"numerigraphe","id":7725011,"avatar_url":"https://avatars.githubusercontent.com/u/7725011?v=3","gravatar_id":"","url":"https://api.github.com/users/numerigraphe","html_url":"https://github.com/numerigraphe","followers_url":"https://api.github.com/users/numerigraphe/followers","following_url":"https://api.github.com/users/numerigraphe/following{/other_user}","gists_url":"https://api.github.com/users/numerigraphe/gists{/gist_id}","starred_url":"https://api.github.com/users/numerigraphe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numerigraphe/subscriptions","organizations_url":"https://api.github.com/users/numerigraphe/orgs","repos_url":"https://api.github.com/users/numerigraphe/repos","events_url":"https://api.github.com/users/numerigraphe/events{/privacy}","received_events_url":"https://api.github.com/users/numerigraphe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numerigraphe/l10n-france","description":"","fork":true,"url":"https://api.github.com/repos/numerigraphe/l10n-france","forks_url":"https://api.github.com/repos/numerigraphe/l10n-france/forks","keys_url":"https://api.github.com/repos/numerigraphe/l10n-france/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numerigraphe/l10n-france/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numerigraphe/l10n-france/teams","hooks_url":"https://api.github.com/repos/numerigraphe/l10n-france/hooks","issue_events_url":"https://api.github.com/repos/numerigraphe/l10n-france/issues/events{/number}","events_url":"https://api.github.com/repos/numerigraphe/l10n-france/events","assignees_url":"https://api.github.com/repos/numerigraphe/l10n-france/assignees{/user}","branches_url":"https://api.github.com/repos/numerigraphe/l10n-france/branches{/branch}","tags_url":"https://api.github.com/repos/numerigraphe/l10n-france/tags","blobs_url":"https://api.github.com/repos/numerigraphe/l10n-france/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numerigraphe/l10n-france/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numerigraphe/l10n-france/git/refs{/sha}","trees_url":"https://api.github.com/repos/numerigraphe/l10n-france/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numerigraphe/l10n-france/statuses/{sha}","languages_url":"https://api.github.com/repos/numerigraphe/l10n-france/languages","stargazers_url":"https://api.github.com/repos/numerigraphe/l10n-france/stargazers","contributors_url":"https://api.github.com/repos/numerigraphe/l10n-france/contributors","subscribers_url":"https://api.github.com/repos/numerigraphe/l10n-france/subscribers","subscription_url":"https://api.github.com/repos/numerigraphe/l10n-france/subscription","commits_url":"https://api.github.com/repos/numerigraphe/l10n-france/commits{/sha}","git_commits_url":"https://api.github.com/repos/numerigraphe/l10n-france/git/commits{/sha}","comments_url":"https://api.github.com/repos/numerigraphe/l10n-france/comments{/number}","issue_comment_url":"https://api.github.com/repos/numerigraphe/l10n-france/issues/comments{/number}","contents_url":"https://api.github.com/repos/numerigraphe/l10n-france/contents/{+path}","compare_url":"https://api.github.com/repos/numerigraphe/l10n-france/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numerigraphe/l10n-france/merges","archive_url":"https://api.github.com/repos/numerigraphe/l10n-france/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numerigraphe/l10n-france/downloads","issues_url":"https://api.github.com/repos/numerigraphe/l10n-france/issues{/number}","pulls_url":"https://api.github.com/repos/numerigraphe/l10n-france/pulls{/number}","milestones_url":"https://api.github.com/repos/numerigraphe/l10n-france/milestones{/number}","notifications_url":"https://api.github.com/repos/numerigraphe/l10n-france/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numerigraphe/l10n-france/labels{/name}","releases_url":"https://api.github.com/repos/numerigraphe/l10n-france/releases{/id}","created_at":"2014-12-08T14:39:20Z","updated_at":"2014-06-30T12:14:59Z","pushed_at":"2015-03-06T10:49:26Z","git_url":"git://github.com/numerigraphe/l10n-france.git","ssh_url":"git@github.com:numerigraphe/l10n-france.git","clone_url":"https://github.com/numerigraphe/l10n-france.git","svn_url":"https://github.com/numerigraphe/l10n-france","homepage":null,"size":4298,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"8.0"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"840b5860e704185abc733867c597173b2b7dc001","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":20937154,"name":"l10n-france","full_name":"OCA/l10n-france","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/l10n-france","description":"","fork":false,"url":"https://api.github.com/repos/OCA/l10n-france","forks_url":"https://api.github.com/repos/OCA/l10n-france/forks","keys_url":"https://api.github.com/repos/OCA/l10n-france/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/l10n-france/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/l10n-france/teams","hooks_url":"https://api.github.com/repos/OCA/l10n-france/hooks","issue_events_url":"https://api.github.com/repos/OCA/l10n-france/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/l10n-france/events","assignees_url":"https://api.github.com/repos/OCA/l10n-france/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/l10n-france/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/l10n-france/tags","blobs_url":"https://api.github.com/repos/OCA/l10n-france/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/l10n-france/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/l10n-france/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/l10n-france/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/l10n-france/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/l10n-france/languages","stargazers_url":"https://api.github.com/repos/OCA/l10n-france/stargazers","contributors_url":"https://api.github.com/repos/OCA/l10n-france/contributors","subscribers_url":"https://api.github.com/repos/OCA/l10n-france/subscribers","subscription_url":"https://api.github.com/repos/OCA/l10n-france/subscription","commits_url":"https://api.github.com/repos/OCA/l10n-france/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/l10n-france/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/l10n-france/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/l10n-france/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/l10n-france/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/l10n-france/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/l10n-france/merges","archive_url":"https://api.github.com/repos/OCA/l10n-france/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/l10n-france/downloads","issues_url":"https://api.github.com/repos/OCA/l10n-france/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/l10n-france/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/l10n-france/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/l10n-france/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/l10n-france/labels{/name}","releases_url":"https://api.github.com/repos/OCA/l10n-france/releases{/id}","created_at":"2014-06-17T19:40:31Z","updated_at":"2015-03-04T16:59:16Z","pushed_at":"2015-03-04T16:59:16Z","git_url":"git://github.com/OCA/l10n-france.git","ssh_url":"git@github.com:OCA/l10n-france.git","clone_url":"https://github.com/OCA/l10n-france.git","svn_url":"https://github.com/OCA/l10n-france","homepage":null,"size":4365,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":1,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/3"},"html":{"href":"https://github.com/OCA/l10n-france/pull/3"},"issue":{"href":"https://api.github.com/repos/OCA/l10n-france/issues/3"},"comments":{"href":"https://api.github.com/repos/OCA/l10n-france/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/l10n-france/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/l10n-france/statuses/578f3181df8c1283d3fcd361adb7cdcae6cd515b"}}}}