[REF] remove useless unlink as the raise osv will roolback the cursor

This commit is contained in:
Sebastien Beau
2013-12-04 17:13:46 +01:00
parent b6cb19e401
commit 4933e28d06

View File

@@ -212,7 +212,6 @@ class AccountStatementProfil(Model):
context)
except Exception:
statement_obj.unlink(cr, uid, [statement_id], context=context)
error_type, error_value, trbk = sys.exc_info()
st = "Error: %s\nDescription: %s\nTraceback:" % (error_type.__name__, error_value)
st += ''.join(traceback.format_tb(trbk, 30))