Odoo Help

Welcome!

This community 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.

1

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

By
Atchuthan - Technical Consultant, Sodexis Inc
on 1/30/15, 6:34 AM 973 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.

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
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).

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 1/30/15, 6:34 AM
Seen: 973 times
Last updated: 7/10/15, 3:59 AM