Advertisement
Guest User

Untitled

a guest
Apr 30th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. TypeError
  2. TypeError: TransactionRollbackError('could not serialize access due to concurrent update\n',) is not JSON serializable
  3.  
  4. Traceback (most recent call last)
  5. File "/home/tyrlabx/fe_lite/app.py", line 256, in add_invoice
  6. resp = post_invoice(invoice_created)
  7. File "/home/tyrlabx/fe_lite/app.py", line 201, in post_invoice
  8. Invoice.set_number(invoices)
  9. File "/usr/local/lib/python3.5/dist-packages/trytond/modules/account_invoice/invoice.py", line 1005, in set_number
  10. cls.save(invoices)
  11. File "/usr/local/lib/python3.5/dist-packages/trytond/model/descriptors.py", line 33, in newfunc
  12. return self.func(owner, *args, **kwargs)
  13. File "/usr/local/lib/python3.5/dist-packages/trytond/model/modelstorage.py", line 1557, in save
  14. (([r], save_values[r]) for r in to_write), ()))
  15. File "/usr/local/lib/python3.5/dist-packages/trytond/modules/account_invoice/invoice.py", line 1120, in write
  16. super(Invoice, cls).write(*args)
  17. File "/usr/local/lib/python3.5/dist-packages/trytond/model/modelsql.py", line 147, in wrapper
  18. return func(cls, *args, **kwargs)
  19. File "/usr/local/lib/python3.5/dist-packages/trytond/model/modelsql.py", line 967, in write
  20. where=red_sql))
  21. File "/usr/local/lib/python3.5/dist-packages/trytond/backend/postgresql/database.py", line 65, in execute
  22. cursor.execute(self, sql, args)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement