{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/rma/pulls/comments/36530448","id":36530448,"diff_hunk":"@@ -0,0 +1,125 @@\n+# -*- encoding: utf-8 -*-\n+###############################################################################\n+#    Module Writen to OpenERP, Open Source Management Solution\n+#    Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).\n+#    All Rights Reserved\n+# ############ Credits ########################################################\n+#    Coded by: Yanina Aular <yani@vauxoo.com>\n+#    Planified by: Yanina Aular <yani@vauxoo.com>\n+#    Audited by: Nhomar Hernandez <nhomar@vauxoo.com>\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 published\n+#    by the Free Software Foundation, either version 3 of the License, or\n+#    (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+from openerp import models, fields, api\n+\n+\n+class claim_line(models.Model):\n+\n+    _inherit = 'claim.line'\n+\n+    @api.model\n+    def _get_sequence_number(self):\n+        \"\"\"\n+        @return the value of the secuence for the number field in the\n+        claim.line model.\n+        \"\"\"\n+        seq_obj = self.env['ir.sequence']\n+        return seq_obj.get('claim.line')","path":"crm_claim_rma_number/model/crm_claim_rma.py","position":39,"original_position":39,"commit_id":"d19e3a84b10112580cff118389129d7d01487eea","original_commit_id":"d19e3a84b10112580cff118389129d7d01487eea","user":{"login":"LeartS","id":5588738,"avatar_url":"https://avatars.githubusercontent.com/u/5588738?v=3","gravatar_id":"","url":"https://api.github.com/users/LeartS","html_url":"https://github.com/LeartS","followers_url":"https://api.github.com/users/LeartS/followers","following_url":"https://api.github.com/users/LeartS/following{/other_user}","gists_url":"https://api.github.com/users/LeartS/gists{/gist_id}","starred_url":"https://api.github.com/users/LeartS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeartS/subscriptions","organizations_url":"https://api.github.com/users/LeartS/orgs","repos_url":"https://api.github.com/users/LeartS/repos","events_url":"https://api.github.com/users/LeartS/events{/privacy}","received_events_url":"https://api.github.com/users/LeartS/received_events","type":"User","site_admin":false},"body":"Unneeded temporary variable `seq_obj`","created_at":"2015-08-07T15:31:37Z","updated_at":"2015-08-07T15:31:37Z","html_url":"https://github.com/OCA/rma/pull/41#discussion_r36530448","pull_request_url":"https://api.github.com/repos/OCA/rma/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/OCA/rma/pulls/comments/36530448"},"html":{"href":"https://github.com/OCA/rma/pull/41#discussion_r36530448"},"pull_request":{"href":"https://api.github.com/repos/OCA/rma/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/rma/pulls/41","id":41722294,"html_url":"https://github.com/OCA/rma/pull/41","diff_url":"https://github.com/OCA/rma/pull/41.diff","patch_url":"https://github.com/OCA/rma/pull/41.patch","issue_url":"https://api.github.com/repos/OCA/rma/issues/41","number":41,"state":"open","locked":false,"title":"[ADD] New module crm_claim_rma_number to New field rma_number provide…","user":{"login":"yaniaular","id":7602170,"avatar_url":"https://avatars.githubusercontent.com/u/7602170?v=3","gravatar_id":"","url":"https://api.github.com/users/yaniaular","html_url":"https://github.com/yaniaular","followers_url":"https://api.github.com/users/yaniaular/followers","following_url":"https://api.github.com/users/yaniaular/following{/other_user}","gists_url":"https://api.github.com/users/yaniaular/gists{/gist_id}","starred_url":"https://api.github.com/users/yaniaular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaniaular/subscriptions","organizations_url":"https://api.github.com/users/yaniaular/orgs","repos_url":"https://api.github.com/users/yaniaular/repos","events_url":"https://api.github.com/users/yaniaular/events{/privacy}","received_events_url":"https://api.github.com/users/yaniaular/received_events","type":"User","site_admin":false},"body":"…d for supplier, Sequence to RMA number ","created_at":"2015-08-05T20:28:27Z","updated_at":"2015-08-07T15:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f40099f5c75b85be3e11b3e7ee5e2720316ecd93","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/rma/pulls/41/commits","review_comments_url":"https://api.github.com/repos/OCA/rma/pulls/41/comments","review_comment_url":"https://api.github.com/repos/OCA/rma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/rma/issues/41/comments","statuses_url":"https://api.github.com/repos/OCA/rma/statuses/d19e3a84b10112580cff118389129d7d01487eea","head":{"label":"vauxoo-dev:8.0-squash_crm_claim_rma_number_module_between_oca_vauxoo","ref":"8.0-squash_crm_claim_rma_number_module_between_oca_vauxoo","sha":"d19e3a84b10112580cff118389129d7d01487eea","user":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":26508381,"name":"rma","full_name":"vauxoo-dev/rma","owner":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vauxoo-dev/rma","description":"","fork":true,"url":"https://api.github.com/repos/vauxoo-dev/rma","forks_url":"https://api.github.com/repos/vauxoo-dev/rma/forks","keys_url":"https://api.github.com/repos/vauxoo-dev/rma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vauxoo-dev/rma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vauxoo-dev/rma/teams","hooks_url":"https://api.github.com/repos/vauxoo-dev/rma/hooks","issue_events_url":"https://api.github.com/repos/vauxoo-dev/rma/issues/events{/number}","events_url":"https://api.github.com/repos/vauxoo-dev/rma/events","assignees_url":"https://api.github.com/repos/vauxoo-dev/rma/assignees{/user}","branches_url":"https://api.github.com/repos/vauxoo-dev/rma/branches{/branch}","tags_url":"https://api.github.com/repos/vauxoo-dev/rma/tags","blobs_url":"https://api.github.com/repos/vauxoo-dev/rma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vauxoo-dev/rma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vauxoo-dev/rma/git/refs{/sha}","trees_url":"https://api.github.com/repos/vauxoo-dev/rma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vauxoo-dev/rma/statuses/{sha}","languages_url":"https://api.github.com/repos/vauxoo-dev/rma/languages","stargazers_url":"https://api.github.com/repos/vauxoo-dev/rma/stargazers","contributors_url":"https://api.github.com/repos/vauxoo-dev/rma/contributors","subscribers_url":"https://api.github.com/repos/vauxoo-dev/rma/subscribers","subscription_url":"https://api.github.com/repos/vauxoo-dev/rma/subscription","commits_url":"https://api.github.com/repos/vauxoo-dev/rma/commits{/sha}","git_commits_url":"https://api.github.com/repos/vauxoo-dev/rma/git/commits{/sha}","comments_url":"https://api.github.com/repos/vauxoo-dev/rma/comments{/number}","issue_comment_url":"https://api.github.com/repos/vauxoo-dev/rma/issues/comments{/number}","contents_url":"https://api.github.com/repos/vauxoo-dev/rma/contents/{+path}","compare_url":"https://api.github.com/repos/vauxoo-dev/rma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vauxoo-dev/rma/merges","archive_url":"https://api.github.com/repos/vauxoo-dev/rma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vauxoo-dev/rma/downloads","issues_url":"https://api.github.com/repos/vauxoo-dev/rma/issues{/number}","pulls_url":"https://api.github.com/repos/vauxoo-dev/rma/pulls{/number}","milestones_url":"https://api.github.com/repos/vauxoo-dev/rma/milestones{/number}","notifications_url":"https://api.github.com/repos/vauxoo-dev/rma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vauxoo-dev/rma/labels{/name}","releases_url":"https://api.github.com/repos/vauxoo-dev/rma/releases{/id}","created_at":"2014-11-11T22:43:23Z","updated_at":"2014-12-10T18:48:36Z","pushed_at":"2015-08-06T00:31:04Z","git_url":"git://github.com/vauxoo-dev/rma.git","ssh_url":"git@github.com:vauxoo-dev/rma.git","clone_url":"https://github.com/vauxoo-dev/rma.git","svn_url":"https://github.com/vauxoo-dev/rma","homepage":null,"size":2771,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"4a5c54fd2f88130cd6f2cdd529b8771853d5bf64","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":20922026,"name":"rma","full_name":"OCA/rma","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/rma","description":"Odoo for Return Of Material (RMA)","fork":false,"url":"https://api.github.com/repos/OCA/rma","forks_url":"https://api.github.com/repos/OCA/rma/forks","keys_url":"https://api.github.com/repos/OCA/rma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/rma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/rma/teams","hooks_url":"https://api.github.com/repos/OCA/rma/hooks","issue_events_url":"https://api.github.com/repos/OCA/rma/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/rma/events","assignees_url":"https://api.github.com/repos/OCA/rma/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/rma/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/rma/tags","blobs_url":"https://api.github.com/repos/OCA/rma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/rma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/rma/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/rma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/rma/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/rma/languages","stargazers_url":"https://api.github.com/repos/OCA/rma/stargazers","contributors_url":"https://api.github.com/repos/OCA/rma/contributors","subscribers_url":"https://api.github.com/repos/OCA/rma/subscribers","subscription_url":"https://api.github.com/repos/OCA/rma/subscription","commits_url":"https://api.github.com/repos/OCA/rma/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/rma/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/rma/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/rma/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/rma/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/rma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/rma/merges","archive_url":"https://api.github.com/repos/OCA/rma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/rma/downloads","issues_url":"https://api.github.com/repos/OCA/rma/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/rma/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/rma/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/rma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/rma/labels{/name}","releases_url":"https://api.github.com/repos/OCA/rma/releases{/id}","created_at":"2014-06-17T12:15:02Z","updated_at":"2015-06-30T17:31:29Z","pushed_at":"2015-08-07T13:22:33Z","git_url":"git://github.com/OCA/rma.git","ssh_url":"git@github.com:OCA/rma.git","clone_url":"https://github.com/OCA/rma.git","svn_url":"https://github.com/OCA/rma","homepage":"","size":3418,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":17,"forks":34,"open_issues":17,"watchers":5,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/rma/pulls/41"},"html":{"href":"https://github.com/OCA/rma/pull/41"},"issue":{"href":"https://api.github.com/repos/OCA/rma/issues/41"},"comments":{"href":"https://api.github.com/repos/OCA/rma/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/rma/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/rma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/rma/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/rma/statuses/d19e3a84b10112580cff118389129d7d01487eea"}}}}