Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
9297 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jun 24
1061
2
Mei 22
33799
0
Mar 19
3953
0
Jan 19
4993
4
Feb 24
12208