{"action":"opened","issue":{"url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/623","labels_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/623/comments","events_url":"https://api.github.com/repos/odoomrp/odoomrp-wip/issues/623/events","html_url":"https://github.com/odoomrp/odoomrp-wip/issues/623","id":56132916,"number":623,"title":"[V8] mrp_operations_extension accion action_confirm","user":{"login":"ccarly","id":7624075,"avatar_url":"https://avatars.githubusercontent.com/u/7624075?v=3","gravatar_id":"","url":"https://api.github.com/users/ccarly","html_url":"https://github.com/ccarly","followers_url":"https://api.github.com/users/ccarly/followers","following_url":"https://api.github.com/users/ccarly/following{/other_user}","gists_url":"https://api.github.com/users/ccarly/gists{/gist_id}","starred_url":"https://api.github.com/users/ccarly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccarly/subscriptions","organizations_url":"https://api.github.com/users/ccarly/orgs","repos_url":"https://api.github.com/users/ccarly/repos","events_url":"https://api.github.com/users/ccarly/events{/privacy}","received_events_url":"https://api.github.com/users/ccarly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T17:54:24Z","updated_at":"2015-01-31T17:54:24Z","closed_at":null,"body":"Independientemente que las rutas de producción entran o no una al menos que habilite el 'Producir aqui', la accion no las encuentra, debido a que  la variable workcenter_lines en el modulo mrp.production siempre esta vacia.\r\n\r\nmrp_operations_extension/models/mrp_production.py Linea 26\r\n\r\nCodigo\r\n\r\n```\r\n   ...\r\n    def action_confirm(self):\r\n        print \"*\" * 50\r\n        if (self.routing_id and\r\n                not any([x.do_production for x in self.workcenter_lines])):\r\n            raise exceptions.Warning(\r\n                _(\"At least one work order must have checked 'Produce here'\"))\r\n        return super(MrpProduction, self).action_confirm()\r\n   ...\r\n```\r\n\r\nSin embargo en la ruta si esta la información que se requiere.\r\n\r\nPropuesta\r\n\r\n```\r\n   ...\r\n    def action_confirm(self):\r\n        print \"*\" * 50\r\n        if (self.routing_id and\r\n                not any([x.do_production for x in self.routing_id.workcenter_lines])):\r\n            raise exceptions.Warning(\r\n                _(\"At least one work order must have checked 'Produce here'\"))\r\n        return super(MrpProduction, self).action_confirm()\r\n   ...\r\n```"}}