{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/pos/pulls/comments/78899410","id":78899410,"diff_hunk":"@@ -0,0 +1,88 @@\n+# -*- coding: utf-8 -*-\n+# Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)\n+# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)\n+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).\n+\n+from openerp import fields, models, api\n+\n+\n+class PosConfig(models.Model):\n+    _inherit = 'pos.config'\n+\n+    group_pos_negative_qty = fields.Many2one(","path":"pos_access_right/models/pos_config.py","position":12,"original_position":12,"commit_id":"43e7389989eab6b6ee6253f6997edd37e5c6dbe1","original_commit_id":"43e7389989eab6b6ee6253f6997edd37e5c6dbe1","user":{"login":"simahawk","id":347149,"avatar_url":"https://avatars.githubusercontent.com/u/347149?v=3","gravatar_id":"","url":"https://api.github.com/users/simahawk","html_url":"https://github.com/simahawk","followers_url":"https://api.github.com/users/simahawk/followers","following_url":"https://api.github.com/users/simahawk/following{/other_user}","gists_url":"https://api.github.com/users/simahawk/gists{/gist_id}","starred_url":"https://api.github.com/users/simahawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simahawk/subscriptions","organizations_url":"https://api.github.com/users/simahawk/orgs","repos_url":"https://api.github.com/users/simahawk/repos","events_url":"https://api.github.com/users/simahawk/events{/privacy}","received_events_url":"https://api.github.com/users/simahawk/received_events","type":"User","site_admin":false},"body":"aren't these fields supposed to have `_id` suffix?","created_at":"2016-09-15T06:52:34Z","updated_at":"2016-09-15T06:52:34Z","html_url":"https://github.com/OCA/pos/pull/115#discussion_r78899410","pull_request_url":"https://api.github.com/repos/OCA/pos/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/OCA/pos/pulls/comments/78899410"},"html":{"href":"https://github.com/OCA/pos/pull/115#discussion_r78899410"},"pull_request":{"href":"https://api.github.com/repos/OCA/pos/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/pos/pulls/115","id":83924290,"html_url":"https://github.com/OCA/pos/pull/115","diff_url":"https://github.com/OCA/pos/pull/115.diff","patch_url":"https://github.com/OCA/pos/pull/115.patch","issue_url":"https://api.github.com/repos/OCA/pos/issues/115","number":115,"state":"open","locked":false,"title":"9.0 pos access right","user":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"body":"\r\nThis module allow you to reduce the PoS rights for some users. For example, you can set that a user can not use discount option, or changing unit prices.\r\n6 options are available : \r\n\r\n![new_groups](https://cloud.githubusercontent.com/assets/3407482/18231527/e74a80aa-72bb-11e6-8160-4d1c868b0091.png)\r\n\r\nIf you change PoS user during the session (by clicking on the name of the user), the right will be updated.\r\n\r\n\r\nA message will be displayed, if the user try to use a unauthorized feature : \r\n![demo_error](https://cloud.githubusercontent.com/assets/3407482/18231549/5e3d59c6-72bc-11e6-9eb6-9cabe34effee.png)\r\n\r\nWorks on production since 2 months. Review welcome. ","created_at":"2016-09-04T14:24:38Z","updated_at":"2016-09-15T06:52:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35b2ff519bca119fe8c3206457b4c18cceeadb5d","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/pos/milestones/3","html_url":"https://github.com/OCA/pos/milestones/9.0","labels_url":"https://api.github.com/repos/OCA/pos/milestones/3/labels","id":1354373,"number":3,"title":"9.0","description":null,"creator":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":5,"state":"open","created_at":"2015-10-14T00:32:36Z","updated_at":"2016-09-04T14:43:01Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OCA/pos/pulls/115/commits","review_comments_url":"https://api.github.com/repos/OCA/pos/pulls/115/comments","review_comment_url":"https://api.github.com/repos/OCA/pos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/pos/issues/115/comments","statuses_url":"https://api.github.com/repos/OCA/pos/statuses/43e7389989eab6b6ee6253f6997edd37e5c6dbe1","head":{"label":"legalsylvain:9.0_pos_access_right","ref":"9.0_pos_access_right","sha":"43e7389989eab6b6ee6253f6997edd37e5c6dbe1","user":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"repo":{"id":49562027,"name":"pos","full_name":"legalsylvain/pos","owner":{"login":"legalsylvain","id":3407482,"avatar_url":"https://avatars.githubusercontent.com/u/3407482?v=3","gravatar_id":"","url":"https://api.github.com/users/legalsylvain","html_url":"https://github.com/legalsylvain","followers_url":"https://api.github.com/users/legalsylvain/followers","following_url":"https://api.github.com/users/legalsylvain/following{/other_user}","gists_url":"https://api.github.com/users/legalsylvain/gists{/gist_id}","starred_url":"https://api.github.com/users/legalsylvain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/legalsylvain/subscriptions","organizations_url":"https://api.github.com/users/legalsylvain/orgs","repos_url":"https://api.github.com/users/legalsylvain/repos","events_url":"https://api.github.com/users/legalsylvain/events{/privacy}","received_events_url":"https://api.github.com/users/legalsylvain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/legalsylvain/pos","description":"Odoo Point of sale Addons","fork":true,"url":"https://api.github.com/repos/legalsylvain/pos","forks_url":"https://api.github.com/repos/legalsylvain/pos/forks","keys_url":"https://api.github.com/repos/legalsylvain/pos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/legalsylvain/pos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/legalsylvain/pos/teams","hooks_url":"https://api.github.com/repos/legalsylvain/pos/hooks","issue_events_url":"https://api.github.com/repos/legalsylvain/pos/issues/events{/number}","events_url":"https://api.github.com/repos/legalsylvain/pos/events","assignees_url":"https://api.github.com/repos/legalsylvain/pos/assignees{/user}","branches_url":"https://api.github.com/repos/legalsylvain/pos/branches{/branch}","tags_url":"https://api.github.com/repos/legalsylvain/pos/tags","blobs_url":"https://api.github.com/repos/legalsylvain/pos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/legalsylvain/pos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/legalsylvain/pos/git/refs{/sha}","trees_url":"https://api.github.com/repos/legalsylvain/pos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/legalsylvain/pos/statuses/{sha}","languages_url":"https://api.github.com/repos/legalsylvain/pos/languages","stargazers_url":"https://api.github.com/repos/legalsylvain/pos/stargazers","contributors_url":"https://api.github.com/repos/legalsylvain/pos/contributors","subscribers_url":"https://api.github.com/repos/legalsylvain/pos/subscribers","subscription_url":"https://api.github.com/repos/legalsylvain/pos/subscription","commits_url":"https://api.github.com/repos/legalsylvain/pos/commits{/sha}","git_commits_url":"https://api.github.com/repos/legalsylvain/pos/git/commits{/sha}","comments_url":"https://api.github.com/repos/legalsylvain/pos/comments{/number}","issue_comment_url":"https://api.github.com/repos/legalsylvain/pos/issues/comments{/number}","contents_url":"https://api.github.com/repos/legalsylvain/pos/contents/{+path}","compare_url":"https://api.github.com/repos/legalsylvain/pos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/legalsylvain/pos/merges","archive_url":"https://api.github.com/repos/legalsylvain/pos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/legalsylvain/pos/downloads","issues_url":"https://api.github.com/repos/legalsylvain/pos/issues{/number}","pulls_url":"https://api.github.com/repos/legalsylvain/pos/pulls{/number}","milestones_url":"https://api.github.com/repos/legalsylvain/pos/milestones{/number}","notifications_url":"https://api.github.com/repos/legalsylvain/pos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/legalsylvain/pos/labels{/name}","releases_url":"https://api.github.com/repos/legalsylvain/pos/releases{/id}","deployments_url":"https://api.github.com/repos/legalsylvain/pos/deployments","created_at":"2016-01-13T09:00:00Z","updated_at":"2016-07-26T03:10:40Z","pushed_at":"2016-09-09T16:23:04Z","git_url":"git://github.com/legalsylvain/pos.git","ssh_url":"git@github.com:legalsylvain/pos.git","clone_url":"https://github.com/legalsylvain/pos.git","svn_url":"https://github.com/legalsylvain/pos","homepage":"http://odoo-community.org/project/59","size":754,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"9.0"}},"base":{"label":"OCA:9.0","ref":"9.0","sha":"7ae97307230a6ae22246822bd1248092934395c3","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":24946822,"name":"pos","full_name":"OCA/pos","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/pos","description":"Odoo Point of sale Addons","fork":false,"url":"https://api.github.com/repos/OCA/pos","forks_url":"https://api.github.com/repos/OCA/pos/forks","keys_url":"https://api.github.com/repos/OCA/pos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/pos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/pos/teams","hooks_url":"https://api.github.com/repos/OCA/pos/hooks","issue_events_url":"https://api.github.com/repos/OCA/pos/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/pos/events","assignees_url":"https://api.github.com/repos/OCA/pos/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/pos/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/pos/tags","blobs_url":"https://api.github.com/repos/OCA/pos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/pos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/pos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/pos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/pos/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/pos/languages","stargazers_url":"https://api.github.com/repos/OCA/pos/stargazers","contributors_url":"https://api.github.com/repos/OCA/pos/contributors","subscribers_url":"https://api.github.com/repos/OCA/pos/subscribers","subscription_url":"https://api.github.com/repos/OCA/pos/subscription","commits_url":"https://api.github.com/repos/OCA/pos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/pos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/pos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/pos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/pos/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/pos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/pos/merges","archive_url":"https://api.github.com/repos/OCA/pos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/pos/downloads","issues_url":"https://api.github.com/repos/OCA/pos/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/pos/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/pos/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/pos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/pos/labels{/name}","releases_url":"https://api.github.com/repos/OCA/pos/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/pos/deployments","created_at":"2014-10-08T15:22:35Z","updated_at":"2016-09-13T15:15:11Z","pushed_at":"2016-09-09T14:59:28Z","git_url":"git://github.com/OCA/pos.git","ssh_url":"git@github.com:OCA/pos.git","clone_url":"https://github.com/OCA/pos.git","svn_url":"https://github.com/OCA/pos","homepage":"http://odoo-community.org/project/59","size":1322,"stargazers_count":42,"watchers_count":42,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":39,"forks":104,"open_issues":39,"watchers":42,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/pos/pulls/115"},"html":{"href":"https://github.com/OCA/pos/pull/115"},"issue":{"href":"https://api.github.com/repos/OCA/pos/issues/115"},"comments":{"href":"https://api.github.com/repos/OCA/pos/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/pos/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/pos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/pos/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/pos/statuses/43e7389989eab6b6ee6253f6997edd37e5c6dbe1"}}}}
{"actor":{"display_login":"simahawk"}}