Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
9623 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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).

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 24
1366
2
maj 22
34622
0
mar 19
4497
0
sty 19
5600
4
lut 24
12900