Advertisement
b0r7

importing data to tryton

May 21st, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # example1: party data to tryton _NOT WORKING
  2. "Name","Contact Mechanisms/Type","Contact Mechanisms/Value","Contact Mechanisms/Type","Contact Mechanisms/Value"
  3. "tester","fax","123456","phone","34586565"
  4.  
  5. # ex2: csv to import party data to tryton _WORKING
  6. "Name","Contact Mechanisms/Type","Contact Mechanisms/Value"
  7. "tester","fax","123456"
  8.  
  9. ## Error on example1:
  10. raceback (most recent call last):
  11. File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
  12. response['result'] = dispatch_method(method, params)
  13. File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
  14. res = dispatch(*args)
  15. File "/trytond/protocols/dispatcher.py", line 158, in dispatch
  16. result = rpc.result(meth(*args, **kwargs))
  17. File "/trytond/model/modelstorage.py", line 749, in import_data
  18. assert all(len(x) == len_fields_names for x in data)
  19. AssertionError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement