Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9441 Vizualizări

To create a transaction at account voucher,  I created a new cursor and if my case is correct, then i used new_cr.commit() else new_cr.rollback()

Is it possible to have rollback() failure? or if possible? How does odoo 7 check rollback failure.

Imagine profil
Abandonează
Cel mai bun răspuns

I believe there is still a chance that there might be a failure within rollback, although I would belive it would be quite rare (sudden network interuption, corruption in the shared memory, etc.).  However, OpenERP seems to leave it to psycopg to handle the error (odoo/odoo/openerp/sql_db.py).

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 24
1184
2
mai 22
34127
0
mar. 19
4181
0
ian. 19
5246
4
feb. 24
12491