Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
9360 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
черв. 24
1132
2
трав. 22
33906
0
бер. 19
4040
0
січ. 19
5088
4
лют. 24
12291