{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/16080","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/16080/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/16080/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/16080/events","html_url":"https://github.com/odoo/odoo/pull/16080","id":217184434,"number":16080,"title":"[10.0] [IMP] purchase_requisition: prepare method for order lines creation","user":{"login":"ThomasBinsfeld","id":16916103,"avatar_url":"https://avatars1.githubusercontent.com/u/16916103?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBinsfeld","html_url":"https://github.com/ThomasBinsfeld","followers_url":"https://api.github.com/users/ThomasBinsfeld/followers","following_url":"https://api.github.com/users/ThomasBinsfeld/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBinsfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBinsfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBinsfeld/subscriptions","organizations_url":"https://api.github.com/users/ThomasBinsfeld/orgs","repos_url":"https://api.github.com/users/ThomasBinsfeld/repos","events_url":"https://api.github.com/users/ThomasBinsfeld/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBinsfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-27T09:22:25Z","updated_at":"2017-04-18T12:45:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/16080","html_url":"https://github.com/odoo/odoo/pull/16080","diff_url":"https://github.com/odoo/odoo/pull/16080.diff","patch_url":"https://github.com/odoo/odoo/pull/16080.patch"},"body":"**Description of the issue/feature this PR addresses:**\r\nAdd a prepare method easy to override in Purchase Requisition Line to create the dictionary of values for order line creation.\r\n\r\n**Current behavior before PR:**\r\nThe dictionary of purchase order lines values is built in the `_onchange_requisition_id` of Purchase Order. Custom modules cannot easily modify this dictionary. \r\n\r\n**Desired behavior after PR is merged:**\r\nThe dictionary is built in an easy to override preparation method in Purchase Requisition Line, with `api.multi` decorator to access the `purchase.requisition.line` object on which we create the purchase order line.\r\n\r\n---\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/294826208","html_url":"https://github.com/odoo/odoo/pull/16080#issuecomment-294826208","issue_url":"https://api.github.com/repos/odoo/odoo/issues/16080","id":294826208,"user":{"login":"adrienpeiffer","id":8035793,"avatar_url":"https://avatars2.githubusercontent.com/u/8035793?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienpeiffer","html_url":"https://github.com/adrienpeiffer","followers_url":"https://api.github.com/users/adrienpeiffer/followers","following_url":"https://api.github.com/users/adrienpeiffer/following{/other_user}","gists_url":"https://api.github.com/users/adrienpeiffer/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienpeiffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienpeiffer/subscriptions","organizations_url":"https://api.github.com/users/adrienpeiffer/orgs","repos_url":"https://api.github.com/users/adrienpeiffer/repos","events_url":"https://api.github.com/users/adrienpeiffer/events{/privacy}","received_events_url":"https://api.github.com/users/adrienpeiffer/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T12:45:03Z","updated_at":"2017-04-18T12:45:03Z","body":"OPW 740248"}}
{"actor":{"display_login":"adrienpeiffer"}}