{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/13153","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/13153/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/13153/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/13153/events","html_url":"https://github.com/odoo/odoo/issues/13153","id":171324536,"number":13153,"title":"[master] routing production location not create previous move for raw materials","user":{"login":"jeffery9","id":1404460,"avatar_url":"https://avatars.githubusercontent.com/u/1404460?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffery9","html_url":"https://github.com/jeffery9","followers_url":"https://api.github.com/users/jeffery9/followers","following_url":"https://api.github.com/users/jeffery9/following{/other_user}","gists_url":"https://api.github.com/users/jeffery9/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffery9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffery9/subscriptions","organizations_url":"https://api.github.com/users/jeffery9/orgs","repos_url":"https://api.github.com/users/jeffery9/repos","events_url":"https://api.github.com/users/jeffery9/events{/privacy}","received_events_url":"https://api.github.com/users/jeffery9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T04:52:36Z","updated_at":"2016-08-16T04:52:36Z","closed_at":null,"body":"Impacted versions:\r\nmaster, saas-12\r\n\r\nSteps to reproduce:\r\n\r\ncreate database with demo data, install mrp application.\r\n\r\nedit routing 'Assemble Furniture',   add  Production Location  as new stock location called '\tWH/workshop'\r\n\r\ncreate MO for 'Computer Desk', keep the raw materials location and finished product location, and then confirm the MO.\r\n\r\n \r\nCurrent behavior:\r\n\r\nproduction should consume raw materials from   'WH/workshop'.  this is right. \r\n\r\noperator should create picking from  'WH/Stock' to   'WH/workshop' manually, or create pull rule + op rule for  location   'WH/workshop'.\r\n\r\n\r\nExpected behavior:\r\n\r\nshould  create picking from  'WH/Stock' to   'WH/workshop' automatically like odoo 8 & 9  doing now.\r\n\r\n```\r\n def _create_previous_move(self, cr, uid, move_id, product, source_location_id, dest_location_id, context=None):\r\n        '''\r\n        When the routing gives a different location than the raw material location of the production order, \r\n        we should create an extra move from the raw material location to the location of the routing, which \r\n        precedes the consumption line (chained).  The picking type depends on the warehouse in which this happens\r\n        and the type of locations. \r\n        '''\r\n```\r\n\r\n\r\nVideo/Screenshot link (optional):\r\n\r\n"}}
{"actor":{"display_login":"jeffery9"}}