{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/sale-workflow/issues/140","labels_url":"https://api.github.com/repos/OCA/sale-workflow/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/OCA/sale-workflow/issues/140/comments","events_url":"https://api.github.com/repos/OCA/sale-workflow/issues/140/events","html_url":"https://github.com/OCA/sale-workflow/pull/140","id":69607042,"number":140,"title":"[ADD] Add sale order lot selection","user":{"login":"hurrinico","id":7517867,"avatar_url":"https://avatars.githubusercontent.com/u/7517867?v=3","gravatar_id":"","url":"https://api.github.com/users/hurrinico","html_url":"https://github.com/hurrinico","followers_url":"https://api.github.com/users/hurrinico/followers","following_url":"https://api.github.com/users/hurrinico/following{/other_user}","gists_url":"https://api.github.com/users/hurrinico/gists{/gist_id}","starred_url":"https://api.github.com/users/hurrinico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hurrinico/subscriptions","organizations_url":"https://api.github.com/users/hurrinico/orgs","repos_url":"https://api.github.com/users/hurrinico/repos","events_url":"https://api.github.com/users/hurrinico/events{/privacy}","received_events_url":"https://api.github.com/users/hurrinico/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OCA/sale-workflow/labels/needs%20fixing","name":"needs fixing","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-04-20T15:01:04Z","updated_at":"2015-08-26T10:47:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OCA/sale-workflow/pulls/140","html_url":"https://github.com/OCA/sale-workflow/pull/140","diff_url":"https://github.com/OCA/sale-workflow/pull/140.diff","patch_url":"https://github.com/OCA/sale-workflow/pull/140.patch"},"body":"This Module Allows you to select on sale order the production lot that will be delivered"},"comment":{"url":"https://api.github.com/repos/OCA/sale-workflow/issues/comments/134943729","html_url":"https://github.com/OCA/sale-workflow/pull/140#issuecomment-134943729","issue_url":"https://api.github.com/repos/OCA/sale-workflow/issues/140","id":134943729,"user":{"login":"eLBati","id":1033131,"avatar_url":"https://avatars.githubusercontent.com/u/1033131?v=3","gravatar_id":"","url":"https://api.github.com/users/eLBati","html_url":"https://github.com/eLBati","followers_url":"https://api.github.com/users/eLBati/followers","following_url":"https://api.github.com/users/eLBati/following{/other_user}","gists_url":"https://api.github.com/users/eLBati/gists{/gist_id}","starred_url":"https://api.github.com/users/eLBati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLBati/subscriptions","organizations_url":"https://api.github.com/users/eLBati/orgs","repos_url":"https://api.github.com/users/eLBati/repos","events_url":"https://api.github.com/users/eLBati/events{/privacy}","received_events_url":"https://api.github.com/users/eLBati/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T10:47:43Z","updated_at":"2015-08-26T10:47:43Z","body":"Tried on runbot:\r\n\r\n - install module\r\n - create new SO\r\n - add a new line, selecting 'Ice Cream' product\r\n - go to lot field and click on arrow\r\n\r\nget\r\n```\r\nTraceback (most recent call last):\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 537, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 574, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 310, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 307, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 803, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/http.py\", line 403, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/addons/web/controllers/main.py\", line 944, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/addons/web/controllers/main.py\", line 936, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 336, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/models.py\", line 1725, in name_search\r\n    return self._name_search(name, args, operator, limit=limit)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 239, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 463, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/models.py\", line 1737, in _name_search\r\n    ids = self._search(cr, user, args, limit=limit, context=context, access_rights_uid=access_rights_uid)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/models.py\", line 4654, in _search\r\n    query = self._where_calc(cr, user, args, context=context)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/models.py\", line 4465, in _where_calc\r\n    e = expression.expression(cr, user, domain, self, context)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/osv/expression.py\", line 646, in __init__\r\n    self.parse(cr, uid, context=context)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/osv/expression.py\", line 749, in parse\r\n    self.stack = [ExtendedLeaf(leaf, self.root_model) for leaf in self.expression]\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/osv/expression.py\", line 532, in __init__\r\n    self.check_leaf(internal)\r\n  File \"/srv/openerp/instances/openerp-oca-runbot/parts/odoo-extra/runbot/static/build/3113776-140-40501d/openerp/osv/expression.py\", line 588, in check_leaf\r\n    raise ValueError(\"Invalid leaf %s\" % str(self.leaf))\r\nValueError: Invalid leaf id\r\n```"}}