Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "method": "model.party.party.create",
- "params": [5, "7d5e8b60cbe440f989e875f644439d2a", [{
- "name": "pj",
- "contacts": [
- ["create", [{
- "kind": "private",
- "value": "344",
- "type": "phone"
- }]]
- ]
- }], {}]
- }
- **Error:**
- {
- "id": 0,
- "error": [
- "u'kind'",
- "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"
- ]
- }
Add Comment
Please, Sign In to add comment