Guest User

Untitled

a guest
Nov 21st, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. {
  2. "method": "model.sale.sale.create",
  3. "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"}}],{}]
  4. }
  5.  
  6.  
  7. Error:
  8.  
  9. {
  10. "id": 0,
  11. "error": [
  12. "0",
  13. "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"
  14. ]
  15. }
Add Comment
Please, Sign In to add comment