{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/12876","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/12876/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/12876/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/12876/events","html_url":"https://github.com/odoo/odoo/pull/12876","id":166985510,"number":12876,"title":"[FIX] Inheritance of purchase_order_change by preparing data dictionary","user":{"login":"ThomasBinsfeld","id":16916103,"avatar_url":"https://avatars.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":1,"created_at":"2016-07-22T07:23:15Z","updated_at":"2016-07-22T07:23:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/12876","html_url":"https://github.com/odoo/odoo/pull/12876","diff_url":"https://github.com/odoo/odoo/pull/12876.diff","patch_url":"https://github.com/odoo/odoo/pull/12876.patch"},"body":"**Description of the issue/feature this PR addresses:**\r\nIn order to add fields into order lines and invoice lines and allow the new field's values to be passed from purchase order lines to invoice lines, `purchase_order_change` need to be overridden. It cannot be done with the current behavior, unless by rewriting the whole function.\r\n\r\n**Current behavior before PR:**\r\nData dictionary filled inside the function `purchase_order_change` with no possibility of inheritance.\r\n\r\n**Desired behavior after PR is merged:**\r\nA function `_prepare_invoice_line_from_po_line` that fills the data dictionary and returns it. So it can be easily inherited to add value(s). \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\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/234473043","html_url":"https://github.com/odoo/odoo/pull/12876#issuecomment-234473043","issue_url":"https://api.github.com/repos/odoo/odoo/issues/12876","id":234473043,"user":{"login":"ThomasBinsfeld","id":16916103,"avatar_url":"https://avatars.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},"created_at":"2016-07-22T07:23:23Z","updated_at":"2016-07-22T07:23:23Z","body":"@sbidoul "}}
{"actor":{"display_login":"ThomasBinsfeld"}}