{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/10083","labels_url":"https://api.github.com/repos/odoo/odoo/issues/10083/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/10083/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/10083/events","html_url":"https://github.com/odoo/odoo/issues/10083","id":122283618,"number":10083,"title":"9.0 enterprise: crash when creating a product within a sale.order","user":{"login":"gurneyalex","id":2032807,"avatar_url":"https://avatars.githubusercontent.com/u/2032807?v=3","gravatar_id":"","url":"https://api.github.com/users/gurneyalex","html_url":"https://github.com/gurneyalex","followers_url":"https://api.github.com/users/gurneyalex/followers","following_url":"https://api.github.com/users/gurneyalex/following{/other_user}","gists_url":"https://api.github.com/users/gurneyalex/gists{/gist_id}","starred_url":"https://api.github.com/users/gurneyalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurneyalex/subscriptions","organizations_url":"https://api.github.com/users/gurneyalex/orgs","repos_url":"https://api.github.com/users/gurneyalex/repos","events_url":"https://api.github.com/users/gurneyalex/events{/privacy}","received_events_url":"https://api.github.com/users/gurneyalex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T14:26:24Z","updated_at":"2015-12-15T14:28:47Z","closed_at":null,"body":"steps to reproduce\r\n\r\n* connect on runbot 9.0 enterprise\r\n* create  a new sale order for Camptocamp. In the order line product, type 'foobar' and select 'create foobar'\r\n* Click on Save to save the sale order\r\n\r\nYou will get the following traceback:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 605, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 642, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 316, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/service/model.py\", line 118, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 309, in checked_call\r\n    result = self.endpoint(*a, **kw)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 893, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/http.py\", line 471, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/addons/web/controllers/main.py\", line 907, in call_kw\r\n    return self._call_kw(model, method, args, kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/addons/web/controllers/main.py\", line 899, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/api.py\", line 238, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/api.py\", line 369, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/models.py\", line 5985, in onchange\r\n    record = self.new(values)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/api.py\", line 236, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/models.py\", line 5555, in new\r\n    record._cache.update(record._convert_to_cache(values, update=True))\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/models.py\", line 5450, in _convert_to_cache\r\n    for name, value in values.iteritems()\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/models.py\", line 5451, in <dictcomp>\r\n    if name in fields\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/fields.py\", line 1743, in convert_to_cache\r\n    ids = OrderedSet(command[2])\r\n  File \"/home/odoo/runbot/extra/runbot/static/build/119703-9-0-b787c0/openerp/tools/misc.py\", line 1106, in __init__\r\n    super(OrderedSet, self).__init__([(x, None) for x in seq])\r\n  File \"/usr/lib/python2.7/collections.py\", line 52, in __init__\r\n    self.__update(*args, **kwds)\r\n  File \"/usr/lib/python2.7/_abcoll.py\", line 548, in update\r\n    self[key] = value\r\n  File \"/usr/lib/python2.7/collections.py\", line 58, in __setitem__\r\n    if key not in self:\r\nTypeError: unhashable type: 'list'\r\n```"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/164780435","html_url":"https://github.com/odoo/odoo/issues/10083#issuecomment-164780435","issue_url":"https://api.github.com/repos/odoo/odoo/issues/10083","id":164780435,"user":{"login":"gurneyalex","id":2032807,"avatar_url":"https://avatars.githubusercontent.com/u/2032807?v=3","gravatar_id":"","url":"https://api.github.com/users/gurneyalex","html_url":"https://github.com/gurneyalex","followers_url":"https://api.github.com/users/gurneyalex/followers","following_url":"https://api.github.com/users/gurneyalex/following{/other_user}","gists_url":"https://api.github.com/users/gurneyalex/gists{/gist_id}","starred_url":"https://api.github.com/users/gurneyalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurneyalex/subscriptions","organizations_url":"https://api.github.com/users/gurneyalex/orgs","repos_url":"https://api.github.com/users/gurneyalex/repos","events_url":"https://api.github.com/users/gurneyalex/events{/privacy}","received_events_url":"https://api.github.com/users/gurneyalex/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T14:28:47Z","updated_at":"2015-12-15T14:28:47Z","body":"OPW opened. "}}