{"action":"opened","issue":{"url":"https://api.github.com/repos/tinyerp/erppeek/issues/87","repository_url":"https://api.github.com/repos/tinyerp/erppeek","labels_url":"https://api.github.com/repos/tinyerp/erppeek/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/tinyerp/erppeek/issues/87/comments","events_url":"https://api.github.com/repos/tinyerp/erppeek/issues/87/events","html_url":"https://github.com/tinyerp/erppeek/issues/87","id":158477653,"number":87,"title":"Calling the deliver_set method on sale.order","user":{"login":"esciara","id":1336689,"avatar_url":"https://avatars.githubusercontent.com/u/1336689?v=3","gravatar_id":"","url":"https://api.github.com/users/esciara","html_url":"https://github.com/esciara","followers_url":"https://api.github.com/users/esciara/followers","following_url":"https://api.github.com/users/esciara/following{/other_user}","gists_url":"https://api.github.com/users/esciara/gists{/gist_id}","starred_url":"https://api.github.com/users/esciara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esciara/subscriptions","organizations_url":"https://api.github.com/users/esciara/orgs","repos_url":"https://api.github.com/users/esciara/repos","events_url":"https://api.github.com/users/esciara/events{/privacy}","received_events_url":"https://api.github.com/users/esciara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-04T00:33:27Z","updated_at":"2016-06-04T00:33:27Z","closed_at":null,"body":"Hi there,\r\n\r\nI am trying to add a delivery carrier to a sale order. \r\n\r\nWhen I call `sale_order_record.delivery_set()`, which seems to be the method to call for that purpose, I get a `TypeError: cannot marshal None unless allow_none is enabled`. \r\n\r\nProbably a newby problem, but I could not get around understanding how to make it work/workaround it/how to enable `allow_none`... \r\n\r\nAny help/pointers?\r\n\r\nStack trace below:\r\n```\r\n      Traceback (most recent call last):\r\n        File \"/Users/emmanuelsciara/Documents/Development/git-repos/odoo/odoo/openerp/service/wsgi_server.py\", line 57, in xmlrpc_return\r\n          response = xmlrpclib.dumps((result,), methodresponse=1, allow_none=False, encoding=None)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 1091, in dumps\r\n          data = m.dumps(params)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 638, in dumps\r\n          dump(v, write)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 660, in __dump\r\n          f(self, value, write)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 664, in dump_nil\r\n          raise TypeError, \"cannot marshal None unless allow_none is enabled\"\r\n      TypeError: cannot marshal None unless allow_none is enabled\r\n\r\n      The above exception was the direct cause of the following exception:\r\n\r\n      Traceback (most recent call last):\r\n        File \"/Users/emmanuelsciara/virtual_envs/odoo_pilote/lib/python2.7/site-packages/behave/model.py\", line 1173, in run\r\n          match.run(runner.context)\r\n        File \"/Users/emmanuelsciara/virtual_envs/odoo_pilote/lib/python2.7/site-packages/behave/model.py\", line 1589, in run\r\n          self.func(context, *args, **kwargs)\r\n        File \"/Users/emmanuelsciara/Documents/Development/git-repos/odoo/odoo-pilote/oerpscenario_functional_labo.features/steps/pricelist_with_5_percent_discount.py\", line 81, in i_add_to_the_sale_order_the_delivery_carrier\r\n          context.last_sale_order.delivery_set()\r\n        File \"/Users/emmanuelsciara/virtual_envs/odoo_pilote/lib/python2.7/site-packages/erppeek.py\", line 1524, in wrapper\r\n          res = self._execute(attr, [self.id], *params, **kwargs)\r\n        File \"/Users/emmanuelsciara/virtual_envs/odoo_pilote/lib/python2.7/site-packages/erppeek.py\", line 712, in execute\r\n          res = self._execute(obj, method, *params)\r\n        File \"/Users/emmanuelsciara/virtual_envs/odoo_pilote/lib/python2.7/site-packages/erppeek.py\", line 402, in <lambda>\r\n          wrapper = lambda s, *args: s._dispatch(name, args)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 1599, in __request\r\n          verbose=self.__verbose\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 1280, in request\r\n          return self.single_request(host, handler, request_body, verbose)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 1313, in single_request\r\n          return self.parse_response(response)\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 1490, in parse_response\r\n          return u.close()\r\n        File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py\", line 799, in close\r\n          raise Fault(**self._stack[0])\r\n      Fault: cannot marshal None unless allow_none is enabled\r\n```"}}
{"actor":{"display_login":"esciara"}}