Guest User

Untitled

a guest
Jul 12th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. {
  2. "method": "model.party.party.create",
  3. "params": [5, "7d5e8b60cbe440f989e875f644439d2a", [{
  4. "name": "pj",
  5. "contacts": [
  6. ["create", [{
  7. "kind": "private",
  8. "value": "344",
  9. "type": "phone"
  10. }]]
  11. ]
  12. }], {}]
  13. }
  14.  
  15. **Error:**
  16.  
  17. {
  18. "id": 0,
  19. "error": [
  20. "u'kind'",
  21. "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/modules/party/party.py\", line 212, in create\n return super(Party, cls).create(vlist)\n File \"/trytond/model/modelsql.py\", line 497, in create\n field.set(cls, fname, *fargs)\n File \"/trytond/model/fields/one2many.py\", line 204, in set\n Target.create(to_create)\n File \"/trytond/modules/party/party.py\", line 212, in create\n return super(Party, cls).create(vlist)\n File \"/trytond/model/modelsql.py\", line 434, in create\n field = cls._fields[fname]\nKeyError: u'kind'\n"
  22. ]
  23. }
Add Comment
Please, Sign In to add comment