Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "method": "model.sale.sale.create",
- "params": [5, "f1d568656fd34d1693715a453452f57b",[{"party":1,"payment_term":1,"currency": 30,"company": 1,"lines":[{"product":3,"quantity":10}],"sale_date":{"month":11,"day":21,"year":2016,"__class__":"date"}}],{}]
- }
- Error:
- {
- "id": 0,
- "error": [
- "0",
- "Traceback (most recent call last):\n File \"/trytond/protocols/wsgi/__init__.py\", line 55, in jsonrpc_app\n response['result'] = dispatch(*args)\n File \"/trytond/protocols/dispatcher.py\", line 158, in dispatch\n result = rpc.result(meth(*c_args, **c_kwargs))\n File \"/trytond/model/modelsql.py\", line 497, in create\n field.set(cls, fname, *fargs)\n File \"/trytond/model/fields/one2many.py\", line 200, in set\n action = value[0]\nKeyError: 0\n"
- ]
- }
Add Comment
Please, Sign In to add comment