I am working on a credit card payment module, and am having trouble with rolling back a transaction if an error occurs.
I have a wizard that accepts the credit card info, and when the button is clicked to submit it, it still writes the record to the table as if it was processed.
I would like to rollback, or delete the record if an error occurred, but cant seem to figure out how to do it in OpenERP v7.
Can anyone explain how to do this? Thank you