{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/manufacture/issues/82","labels_url":"https://api.github.com/repos/OCA/manufacture/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/OCA/manufacture/issues/82/comments","events_url":"https://api.github.com/repos/OCA/manufacture/issues/82/events","html_url":"https://github.com/OCA/manufacture/pull/82","id":128403025,"number":82,"title":"[IMP] mrp_production_real_cost - save WO on AAL","user":{"login":"ddico","id":7885477,"avatar_url":"https://avatars.githubusercontent.com/u/7885477?v=3","gravatar_id":"","url":"https://api.github.com/users/ddico","html_url":"https://github.com/ddico","followers_url":"https://api.github.com/users/ddico/followers","following_url":"https://api.github.com/users/ddico/following{/other_user}","gists_url":"https://api.github.com/users/ddico/gists{/gist_id}","starred_url":"https://api.github.com/users/ddico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddico/subscriptions","organizations_url":"https://api.github.com/users/ddico/orgs","repos_url":"https://api.github.com/users/ddico/repos","events_url":"https://api.github.com/users/ddico/events{/privacy}","received_events_url":"https://api.github.com/users/ddico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-01-24T15:06:49Z","updated_at":"2016-01-28T22:29:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/manufacture/pulls/82","html_url":"https://github.com/OCA/manufacture/pull/82","diff_url":"https://github.com/OCA/manufacture/pull/82.diff","patch_url":"https://github.com/OCA/manufacture/pull/82.patch"},"body":"When account_analytic_line(s) are created they don't have the originating WO saved. With the exception of the first item in the materials all other are missing.\r\n\r\nWorkorder is defined as a related field (on task_id) here:\r\nhttps://github.com/OCA/manufacture/blob/8.0/mrp_project/models/account_analytic_line.py#L14\r\nSo we don't need to add workorder to the analytic_vals, instead we just need to ensure the correct task is saved.\r\n \r\nBefore this PR:\r\n\r\n![screen shot 2016-01-24 at 9 52 17 am](https://cloud.githubusercontent.com/assets/7885477/12536972/eaebe5f4-c281-11e5-9526-1d2f02249548.png)\r\n\r\nWith this PR:\r\n![screen shot 2016-01-24 at 9 53 16 am](https://cloud.githubusercontent.com/assets/7885477/12536974/f482152a-c281-11e5-8e42-c57adbee5828.png)\r\n"},"comment":{"url":"https://api.github.com/repos/OCA/manufacture/issues/comments/176454130","html_url":"https://github.com/OCA/manufacture/pull/82#issuecomment-176454130","issue_url":"https://api.github.com/repos/OCA/manufacture/issues/82","id":176454130,"user":{"login":"oihane","id":2323616,"avatar_url":"https://avatars.githubusercontent.com/u/2323616?v=3","gravatar_id":"","url":"https://api.github.com/users/oihane","html_url":"https://github.com/oihane","followers_url":"https://api.github.com/users/oihane/followers","following_url":"https://api.github.com/users/oihane/following{/other_user}","gists_url":"https://api.github.com/users/oihane/gists{/gist_id}","starred_url":"https://api.github.com/users/oihane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oihane/subscriptions","organizations_url":"https://api.github.com/users/oihane/orgs","repos_url":"https://api.github.com/users/oihane/repos","events_url":"https://api.github.com/users/oihane/events{/privacy}","received_events_url":"https://api.github.com/users/oihane/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T22:29:02Z","updated_at":"2016-01-28T22:29:02Z","body":"What a pitty the coveralls, code reviewed :+1: "}}