Dear tryton team,
I’m trying to post and invoice from flask_tryton, but when I call subprocess postgresql gives me always this error on psql log.
ERROR: could not serialize access due to concurrent update
STATEMENT: UPDATE “ir_session” SET “write_uid” = 0, “write_date” = CURRENT_TIMESTAMP WHERE ((“ir_session”.“id” IN (197)))
… repeat x times
I know I’m missing something, as I’m passing pool instance to external module to make the post, maybe it’s because of that?.
Thanks if somebody knew what could be the error. btw, on second attempt works
Ok, I think I know what could be the issue:
In the above paste the exception raise on Invoice.set_number(invoices), Invoice for my it’s a pool instance of account_invoice, in tryton it’s cls. the class, but I’m not sure why works on second attempt.