Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
9362 Näkymät

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.

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
kesäk. 24
1133
2
toukok. 22
33907
0
maalisk. 19
4040
0
tammik. 19
5089
4
helmik. 24
12292