{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/OCB/pulls/comments/38951873","id":38951873,"diff_hunk":"@@ -892,8 +891,8 @@ def product_id_change(self, cr, uid, ids, pricelist, product, qty=0,\n \n         if not flag:\n             result['name'] = self.pool.get('product.product').name_get(cr, uid, [product_obj.id], context=context_partner)[0][1]\n-            if product_obj.description_sale:\n-                result['name'] += '\\n'+product_obj.description_sale\n+            description = product_obj.description_sale or product_obj.description\n+            result['name'] += '\\n'+description","path":"addons/sale/sale.py","position":15,"original_position":15,"commit_id":"0c76cf4583a4b4377de2805bc75cdac645592c66","original_commit_id":"0c76cf4583a4b4377de2805bc75cdac645592c66","user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"body":"```\r\ndescription = product_obj.description_sale or product_obj.description\r\n    if description:\r\n        result['name'] += '\\n' + description\r\n```\r\n","created_at":"2015-09-08T17:08:45Z","updated_at":"2015-09-08T17:08:45Z","html_url":"https://github.com/OCA/OCB/pull/321#discussion_r38951873","pull_request_url":"https://api.github.com/repos/OCA/OCB/pulls/321","_links":{"self":{"href":"https://api.github.com/repos/OCA/OCB/pulls/comments/38951873"},"html":{"href":"https://github.com/OCA/OCB/pull/321#discussion_r38951873"},"pull_request":{"href":"https://api.github.com/repos/OCA/OCB/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/OCB/pulls/321","id":44267454,"html_url":"https://github.com/OCA/OCB/pull/321","diff_url":"https://github.com/OCA/OCB/pull/321.diff","patch_url":"https://github.com/OCA/OCB/pull/321.patch","issue_url":"https://api.github.com/repos/OCA/OCB/issues/321","number":321,"state":"open","locked":false,"title":"In the product line the product description was incorrect","user":{"login":"agb80","id":911891,"avatar_url":"https://avatars.githubusercontent.com/u/911891?v=3","gravatar_id":"","url":"https://api.github.com/users/agb80","html_url":"https://github.com/agb80","followers_url":"https://api.github.com/users/agb80/followers","following_url":"https://api.github.com/users/agb80/following{/other_user}","gists_url":"https://api.github.com/users/agb80/gists{/gist_id}","starred_url":"https://api.github.com/users/agb80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agb80/subscriptions","organizations_url":"https://api.github.com/users/agb80/orgs","repos_url":"https://api.github.com/users/agb80/repos","events_url":"https://api.github.com/users/agb80/events{/privacy}","received_events_url":"https://api.github.com/users/agb80/received_events","type":"User","site_admin":false},"body":"It was added the description product in the same way that in the invoice","created_at":"2015-09-04T22:30:46Z","updated_at":"2015-09-08T17:08:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96b0ab2fc697df83f2c411edaa1d6b409a0e49ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/OCB/pulls/321/commits","review_comments_url":"https://api.github.com/repos/OCA/OCB/pulls/321/comments","review_comment_url":"https://api.github.com/repos/OCA/OCB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/OCB/issues/321/comments","statuses_url":"https://api.github.com/repos/OCA/OCB/statuses/0c76cf4583a4b4377de2805bc75cdac645592c66","head":{"label":"OpenPymeMx:product_description","ref":"product_description","sha":"0c76cf4583a4b4377de2805bc75cdac645592c66","user":{"login":"OpenPymeMx","id":3706679,"avatar_url":"https://avatars.githubusercontent.com/u/3706679?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenPymeMx","html_url":"https://github.com/OpenPymeMx","followers_url":"https://api.github.com/users/OpenPymeMx/followers","following_url":"https://api.github.com/users/OpenPymeMx/following{/other_user}","gists_url":"https://api.github.com/users/OpenPymeMx/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenPymeMx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenPymeMx/subscriptions","organizations_url":"https://api.github.com/users/OpenPymeMx/orgs","repos_url":"https://api.github.com/users/OpenPymeMx/repos","events_url":"https://api.github.com/users/OpenPymeMx/events{/privacy}","received_events_url":"https://api.github.com/users/OpenPymeMx/received_events","type":"Organization","site_admin":false},"repo":{"id":27746817,"name":"OCB","full_name":"OpenPymeMx/OCB","owner":{"login":"OpenPymeMx","id":3706679,"avatar_url":"https://avatars.githubusercontent.com/u/3706679?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenPymeMx","html_url":"https://github.com/OpenPymeMx","followers_url":"https://api.github.com/users/OpenPymeMx/followers","following_url":"https://api.github.com/users/OpenPymeMx/following{/other_user}","gists_url":"https://api.github.com/users/OpenPymeMx/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenPymeMx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenPymeMx/subscriptions","organizations_url":"https://api.github.com/users/OpenPymeMx/orgs","repos_url":"https://api.github.com/users/OpenPymeMx/repos","events_url":"https://api.github.com/users/OpenPymeMx/events{/privacy}","received_events_url":"https://api.github.com/users/OpenPymeMx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenPymeMx/OCB","description":"Odoo Community Backports","fork":true,"url":"https://api.github.com/repos/OpenPymeMx/OCB","forks_url":"https://api.github.com/repos/OpenPymeMx/OCB/forks","keys_url":"https://api.github.com/repos/OpenPymeMx/OCB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenPymeMx/OCB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenPymeMx/OCB/teams","hooks_url":"https://api.github.com/repos/OpenPymeMx/OCB/hooks","issue_events_url":"https://api.github.com/repos/OpenPymeMx/OCB/issues/events{/number}","events_url":"https://api.github.com/repos/OpenPymeMx/OCB/events","assignees_url":"https://api.github.com/repos/OpenPymeMx/OCB/assignees{/user}","branches_url":"https://api.github.com/repos/OpenPymeMx/OCB/branches{/branch}","tags_url":"https://api.github.com/repos/OpenPymeMx/OCB/tags","blobs_url":"https://api.github.com/repos/OpenPymeMx/OCB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenPymeMx/OCB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenPymeMx/OCB/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenPymeMx/OCB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenPymeMx/OCB/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenPymeMx/OCB/languages","stargazers_url":"https://api.github.com/repos/OpenPymeMx/OCB/stargazers","contributors_url":"https://api.github.com/repos/OpenPymeMx/OCB/contributors","subscribers_url":"https://api.github.com/repos/OpenPymeMx/OCB/subscribers","subscription_url":"https://api.github.com/repos/OpenPymeMx/OCB/subscription","commits_url":"https://api.github.com/repos/OpenPymeMx/OCB/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenPymeMx/OCB/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenPymeMx/OCB/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenPymeMx/OCB/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenPymeMx/OCB/contents/{+path}","compare_url":"https://api.github.com/repos/OpenPymeMx/OCB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenPymeMx/OCB/merges","archive_url":"https://api.github.com/repos/OpenPymeMx/OCB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenPymeMx/OCB/downloads","issues_url":"https://api.github.com/repos/OpenPymeMx/OCB/issues{/number}","pulls_url":"https://api.github.com/repos/OpenPymeMx/OCB/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenPymeMx/OCB/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenPymeMx/OCB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenPymeMx/OCB/labels{/name}","releases_url":"https://api.github.com/repos/OpenPymeMx/OCB/releases{/id}","created_at":"2014-12-09T02:59:57Z","updated_at":"2015-04-28T20:28:26Z","pushed_at":"2015-09-08T15:48:20Z","git_url":"git://github.com/OpenPymeMx/OCB.git","ssh_url":"git@github.com:OpenPymeMx/OCB.git","clone_url":"https://github.com/OpenPymeMx/OCB.git","svn_url":"https://github.com/OpenPymeMx/OCB","homepage":"http://odoo-community.org","size":619596,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"7.0"}},"base":{"label":"OCA:7.0","ref":"7.0","sha":"4f7280a84e5e860329759cb17f7d517c2852c2f4","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":20558462,"name":"OCB","full_name":"OCA/OCB","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/OCB","description":"Odoo Community Backports","fork":true,"url":"https://api.github.com/repos/OCA/OCB","forks_url":"https://api.github.com/repos/OCA/OCB/forks","keys_url":"https://api.github.com/repos/OCA/OCB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/OCB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/OCB/teams","hooks_url":"https://api.github.com/repos/OCA/OCB/hooks","issue_events_url":"https://api.github.com/repos/OCA/OCB/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/OCB/events","assignees_url":"https://api.github.com/repos/OCA/OCB/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/OCB/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/OCB/tags","blobs_url":"https://api.github.com/repos/OCA/OCB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/OCB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/OCB/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/OCB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/OCB/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/OCB/languages","stargazers_url":"https://api.github.com/repos/OCA/OCB/stargazers","contributors_url":"https://api.github.com/repos/OCA/OCB/contributors","subscribers_url":"https://api.github.com/repos/OCA/OCB/subscribers","subscription_url":"https://api.github.com/repos/OCA/OCB/subscription","commits_url":"https://api.github.com/repos/OCA/OCB/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/OCB/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/OCB/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/OCB/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/OCB/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/OCB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/OCB/merges","archive_url":"https://api.github.com/repos/OCA/OCB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/OCB/downloads","issues_url":"https://api.github.com/repos/OCA/OCB/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/OCB/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/OCB/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/OCB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/OCB/labels{/name}","releases_url":"https://api.github.com/repos/OCA/OCB/releases{/id}","created_at":"2014-06-06T09:33:16Z","updated_at":"2015-09-02T06:50:28Z","pushed_at":"2015-09-08T15:48:23Z","git_url":"git://github.com/OCA/OCB.git","ssh_url":"git@github.com:OCA/OCB.git","clone_url":"https://github.com/OCA/OCB.git","svn_url":"https://github.com/OCA/OCB","homepage":"http://odoo-community.org","size":1038598,"stargazers_count":55,"watchers_count":55,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":80,"forks":64,"open_issues":80,"watchers":55,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/OCB/pulls/321"},"html":{"href":"https://github.com/OCA/OCB/pull/321"},"issue":{"href":"https://api.github.com/repos/OCA/OCB/issues/321"},"comments":{"href":"https://api.github.com/repos/OCA/OCB/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/OCB/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/OCB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/OCB/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/OCB/statuses/0c76cf4583a4b4377de2805bc75cdac645592c66"}}}}