跳至内容
菜单
此问题已终结
1 回复
9296 查看

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

形象
丢弃
相关帖文 回复 查看 活动
0
6月 24
1060
2
5月 22
33796
0
3月 19
3949
0
1月 19
4990
4
2月 24
12207