{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/2147","labels_url":"https://api.github.com/repos/odoo/odoo/issues/2147/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/2147/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/2147/events","html_url":"https://github.com/odoo/odoo/issues/2147","id":41718848,"number":2147,"title":"Stock Valuation at Manufacturing Order.","user":{"login":"jaymaniar","id":6824628,"avatar_url":"https://avatars.githubusercontent.com/u/6824628?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymaniar","html_url":"https://github.com/jaymaniar","followers_url":"https://api.github.com/users/jaymaniar/followers","following_url":"https://api.github.com/users/jaymaniar/following{/other_user}","gists_url":"https://api.github.com/users/jaymaniar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymaniar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymaniar/subscriptions","organizations_url":"https://api.github.com/users/jaymaniar/orgs","repos_url":"https://api.github.com/users/jaymaniar/repos","events_url":"https://api.github.com/users/jaymaniar/events{/privacy}","received_events_url":"https://api.github.com/users/jaymaniar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/odoo/odoo/labels/wishlist","name":"wishlist","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"jco-odoo","id":3832699,"avatar_url":"https://avatars.githubusercontent.com/u/3832699?v=3","gravatar_id":"","url":"https://api.github.com/users/jco-odoo","html_url":"https://github.com/jco-odoo","followers_url":"https://api.github.com/users/jco-odoo/followers","following_url":"https://api.github.com/users/jco-odoo/following{/other_user}","gists_url":"https://api.github.com/users/jco-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jco-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jco-odoo/subscriptions","organizations_url":"https://api.github.com/users/jco-odoo/orgs","repos_url":"https://api.github.com/users/jco-odoo/repos","events_url":"https://api.github.com/users/jco-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/jco-odoo/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2014-09-02T15:03:00Z","updated_at":"2015-09-15T15:38:49Z","closed_at":null,"body":"I checked stock valuation at manufacturing side.  It seems that ERP system doesn't calculate Cost of Raw Materials consumed in manufacturing order. \r\n\r\nExample :\r\n\r\nRaw Materials : X,Y,Z\r\n\r\nFinished Product : XYZ\r\n\r\nWhen I produced XYZ product, at that time system should calculate cost of X,Y & Z based on Removal Strategy we set & set that valuation  for XYZ product as well.  However there are many cases such as work center costing and all.  But atleast system should calculate cost of Raw Material.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/140435314","html_url":"https://github.com/odoo/odoo/issues/2147#issuecomment-140435314","issue_url":"https://api.github.com/repos/odoo/odoo/issues/2147","id":140435314,"user":{"login":"dpelaez","id":11542555,"avatar_url":"https://avatars.githubusercontent.com/u/11542555?v=3","gravatar_id":"","url":"https://api.github.com/users/dpelaez","html_url":"https://github.com/dpelaez","followers_url":"https://api.github.com/users/dpelaez/followers","following_url":"https://api.github.com/users/dpelaez/following{/other_user}","gists_url":"https://api.github.com/users/dpelaez/gists{/gist_id}","starred_url":"https://api.github.com/users/dpelaez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpelaez/subscriptions","organizations_url":"https://api.github.com/users/dpelaez/orgs","repos_url":"https://api.github.com/users/dpelaez/repos","events_url":"https://api.github.com/users/dpelaez/events{/privacy}","received_events_url":"https://api.github.com/users/dpelaez/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T15:38:49Z","updated_at":"2015-09-15T15:38:49Z","body":"The only workaround I have found so far is to do the following:\r\n\r\n1. Set the products costing method to real price.\r\n2. Set cost price = 0\r\n3. Create manufacturing order.\r\n4. Consume only the raw materials.\r\n5. Check the value of the raw materials consumed in current inventory valuation.\r\n6. Set the cost price equal to the value of the raw materials consumed.\r\n7. In the MO produce order.\r\n\r\nIf you go the current inventory valuation you should see that the product move from production->stock has a value of the cost price set and as well in the accounting entries you should see the entries with the correct values.\r\n\r\n### Important note: \r\nif you do not set the cost price = 0 before creating the manufacturing order, when you produce the product the price used is the **cost price that was set before** the MO was created, even if you change it before you click produce."}}