{"action":"created","comment":{"url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/comments/37094327","id":37094327,"diff_hunk":"@@ -244,12 +244,13 @@ def action_validate(self, cr, uid, ids, number=None):\n             seq = seq_obj.browse(cr, uid, seq_id)\n             ret_num = number\n             if number is None:\n-                ret_number = seq_obj.get(cr, uid, seq.code)\n+                ret_number = seq_obj.get_id(cr, uid, seq_id)\n             else:\n                 padding = seq.padding\n                 ret_number = str(number).zfill(padding)\n             self._amount_total(cr, uid, [ret.id], [], {}, {})                \n             number = ret.auth_id.serie_entidad + ret.auth_id.serie_emision + ret_number\n+            security_code = seq_obj.get_id(cr, uid, 56) # Fix einvoice","path":"l10n_ec_withdrawing/withdrawing.py","position":11,"original_position":11,"commit_id":"c0648287cddadf46da31dc6fd80dd44c1531bdd9","original_commit_id":"c0648287cddadf46da31dc6fd80dd44c1531bdd9","user":{"login":"ovnicraft","id":31282,"avatar_url":"https://avatars.githubusercontent.com/u/31282?v=3","gravatar_id":"","url":"https://api.github.com/users/ovnicraft","html_url":"https://github.com/ovnicraft","followers_url":"https://api.github.com/users/ovnicraft/followers","following_url":"https://api.github.com/users/ovnicraft/following{/other_user}","gists_url":"https://api.github.com/users/ovnicraft/gists{/gist_id}","starred_url":"https://api.github.com/users/ovnicraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovnicraft/subscriptions","organizations_url":"https://api.github.com/users/ovnicraft/orgs","repos_url":"https://api.github.com/users/ovnicraft/repos","events_url":"https://api.github.com/users/ovnicraft/events{/privacy}","received_events_url":"https://api.github.com/users/ovnicraft/received_events","type":"User","site_admin":false},"body":"si cargar la secuencia via xml, puedes usar el ID del record o usar el metodo get('codigo.de.secuencia')","created_at":"2015-08-14T16:41:46Z","updated_at":"2015-08-14T16:41:46Z","html_url":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56#discussion_r37094327","pull_request_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/comments/37094327"},"html":{"href":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56#discussion_r37094327"},"pull_request":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56","id":42416842,"html_url":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56","diff_url":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56.diff","patch_url":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56.patch","issue_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/56","number":56,"state":"open","locked":false,"title":"Corrección retenciones","user":{"login":"alcidesrivera","id":7811413,"avatar_url":"https://avatars.githubusercontent.com/u/7811413?v=3","gravatar_id":"","url":"https://api.github.com/users/alcidesrivera","html_url":"https://github.com/alcidesrivera","followers_url":"https://api.github.com/users/alcidesrivera/followers","following_url":"https://api.github.com/users/alcidesrivera/following{/other_user}","gists_url":"https://api.github.com/users/alcidesrivera/gists{/gist_id}","starred_url":"https://api.github.com/users/alcidesrivera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcidesrivera/subscriptions","organizations_url":"https://api.github.com/users/alcidesrivera/orgs","repos_url":"https://api.github.com/users/alcidesrivera/repos","events_url":"https://api.github.com/users/alcidesrivera/events{/privacy}","received_events_url":"https://api.github.com/users/alcidesrivera/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-14T01:26:45Z","updated_at":"2015-08-14T16:41:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cf9a3942f51e43911b18df9bdc29ca5e0a5c6c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56/commits","review_comments_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56/comments","review_comment_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/56/comments","statuses_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/statuses/c0648287cddadf46da31dc6fd80dd44c1531bdd9","head":{"label":"alcidesrivera:fix-ecuador","ref":"fix-ecuador","sha":"c0648287cddadf46da31dc6fd80dd44c1531bdd9","user":{"login":"alcidesrivera","id":7811413,"avatar_url":"https://avatars.githubusercontent.com/u/7811413?v=3","gravatar_id":"","url":"https://api.github.com/users/alcidesrivera","html_url":"https://github.com/alcidesrivera","followers_url":"https://api.github.com/users/alcidesrivera/followers","following_url":"https://api.github.com/users/alcidesrivera/following{/other_user}","gists_url":"https://api.github.com/users/alcidesrivera/gists{/gist_id}","starred_url":"https://api.github.com/users/alcidesrivera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcidesrivera/subscriptions","organizations_url":"https://api.github.com/users/alcidesrivera/orgs","repos_url":"https://api.github.com/users/alcidesrivera/repos","events_url":"https://api.github.com/users/alcidesrivera/events{/privacy}","received_events_url":"https://api.github.com/users/alcidesrivera/received_events","type":"User","site_admin":false},"repo":{"id":40687620,"name":"odoo-ecuador","full_name":"alcidesrivera/odoo-ecuador","owner":{"login":"alcidesrivera","id":7811413,"avatar_url":"https://avatars.githubusercontent.com/u/7811413?v=3","gravatar_id":"","url":"https://api.github.com/users/alcidesrivera","html_url":"https://github.com/alcidesrivera","followers_url":"https://api.github.com/users/alcidesrivera/followers","following_url":"https://api.github.com/users/alcidesrivera/following{/other_user}","gists_url":"https://api.github.com/users/alcidesrivera/gists{/gist_id}","starred_url":"https://api.github.com/users/alcidesrivera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcidesrivera/subscriptions","organizations_url":"https://api.github.com/users/alcidesrivera/orgs","repos_url":"https://api.github.com/users/alcidesrivera/repos","events_url":"https://api.github.com/users/alcidesrivera/events{/privacy}","received_events_url":"https://api.github.com/users/alcidesrivera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alcidesrivera/odoo-ecuador","description":"Localización Ecuatoriana para Odoo (OpenERP)","fork":true,"url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador","forks_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/forks","keys_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/teams","hooks_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/hooks","issue_events_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/issues/events{/number}","events_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/events","assignees_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/assignees{/user}","branches_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/branches{/branch}","tags_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/tags","blobs_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/git/refs{/sha}","trees_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/statuses/{sha}","languages_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/languages","stargazers_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/stargazers","contributors_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/contributors","subscribers_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/subscribers","subscription_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/subscription","commits_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/commits{/sha}","git_commits_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/git/commits{/sha}","comments_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/comments{/number}","issue_comment_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/issues/comments{/number}","contents_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/contents/{+path}","compare_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/merges","archive_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/downloads","issues_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/issues{/number}","pulls_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/pulls{/number}","milestones_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/milestones{/number}","notifications_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/labels{/name}","releases_url":"https://api.github.com/repos/alcidesrivera/odoo-ecuador/releases{/id}","created_at":"2015-08-14T00:18:14Z","updated_at":"2015-08-14T00:18:14Z","pushed_at":"2015-08-14T01:02:30Z","git_url":"git://github.com/alcidesrivera/odoo-ecuador.git","ssh_url":"git@github.com:alcidesrivera/odoo-ecuador.git","clone_url":"https://github.com/alcidesrivera/odoo-ecuador.git","svn_url":"https://github.com/alcidesrivera/odoo-ecuador","homepage":"","size":5665,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"7.0"}},"base":{"label":"odoo-ecuador:7.0","ref":"7.0","sha":"5f3ba61c9103db8cc4117378eab70f6b7b8f9ce8","user":{"login":"odoo-ecuador","id":5407569,"avatar_url":"https://avatars.githubusercontent.com/u/5407569?v=3","gravatar_id":"","url":"https://api.github.com/users/odoo-ecuador","html_url":"https://github.com/odoo-ecuador","followers_url":"https://api.github.com/users/odoo-ecuador/followers","following_url":"https://api.github.com/users/odoo-ecuador/following{/other_user}","gists_url":"https://api.github.com/users/odoo-ecuador/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo-ecuador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo-ecuador/subscriptions","organizations_url":"https://api.github.com/users/odoo-ecuador/orgs","repos_url":"https://api.github.com/users/odoo-ecuador/repos","events_url":"https://api.github.com/users/odoo-ecuador/events{/privacy}","received_events_url":"https://api.github.com/users/odoo-ecuador/received_events","type":"Organization","site_admin":false},"repo":{"id":8119687,"name":"odoo-ecuador","full_name":"odoo-ecuador/odoo-ecuador","owner":{"login":"odoo-ecuador","id":5407569,"avatar_url":"https://avatars.githubusercontent.com/u/5407569?v=3","gravatar_id":"","url":"https://api.github.com/users/odoo-ecuador","html_url":"https://github.com/odoo-ecuador","followers_url":"https://api.github.com/users/odoo-ecuador/followers","following_url":"https://api.github.com/users/odoo-ecuador/following{/other_user}","gists_url":"https://api.github.com/users/odoo-ecuador/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo-ecuador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo-ecuador/subscriptions","organizations_url":"https://api.github.com/users/odoo-ecuador/orgs","repos_url":"https://api.github.com/users/odoo-ecuador/repos","events_url":"https://api.github.com/users/odoo-ecuador/events{/privacy}","received_events_url":"https://api.github.com/users/odoo-ecuador/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odoo-ecuador/odoo-ecuador","description":"Localización Ecuatoriana para Odoo (OpenERP)","fork":false,"url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador","forks_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/forks","keys_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/teams","hooks_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/hooks","issue_events_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/events{/number}","events_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/events","assignees_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/assignees{/user}","branches_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/branches{/branch}","tags_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/tags","blobs_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/git/refs{/sha}","trees_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/statuses/{sha}","languages_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/languages","stargazers_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/stargazers","contributors_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/contributors","subscribers_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/subscribers","subscription_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/subscription","commits_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/commits{/sha}","git_commits_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/git/commits{/sha}","comments_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/comments{/number}","issue_comment_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/comments{/number}","contents_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/contents/{+path}","compare_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/merges","archive_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/downloads","issues_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues{/number}","pulls_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls{/number}","milestones_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/milestones{/number}","notifications_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/labels{/name}","releases_url":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/releases{/id}","created_at":"2013-02-10T06:09:01Z","updated_at":"2015-08-04T17:40:01Z","pushed_at":"2015-08-14T01:26:45Z","git_url":"git://github.com/odoo-ecuador/odoo-ecuador.git","ssh_url":"git@github.com:odoo-ecuador/odoo-ecuador.git","clone_url":"https://github.com/odoo-ecuador/odoo-ecuador.git","svn_url":"https://github.com/odoo-ecuador/odoo-ecuador","homepage":"","size":5665,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":21,"mirror_url":null,"open_issues_count":17,"forks":21,"open_issues":17,"watchers":12,"default_branch":"7.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56"},"html":{"href":"https://github.com/odoo-ecuador/odoo-ecuador/pull/56"},"issue":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/56"},"comments":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/odoo-ecuador/odoo-ecuador/statuses/c0648287cddadf46da31dc6fd80dd44c1531bdd9"}}}}