Odoo Help


Is failure with cr.rollback() handled at Odoo?

Atchuthan - Technical Consultant, Sodexis Inc
on 1/30/15, 6:34 AM 1,915 views

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.




| 5 3 6
Jakarta, Indonesia
On 1/30/15, 11:50 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 1/30/15, 6:34 AM
Seen: 1915 times
Last updated: 1/20/17, 2:59 AM