diff options
| author | Olivier Dony <odo@openerp.com> | 2012-10-29 19:07:42 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-10-29 19:07:42 +0100 |
| commit | 485e4374409794be1d2baef4d813f8d351578859 (patch) | |
| tree | 64df8a6376cf3e93617c214b3a07d9ef4be58c2d /addons/note/note_data.xml | |
| parent | 290baa5be7484f5c235582ed7ce6a82e505ac1c5 (diff) | |
[FIX] orm: _validate should not immediately rollback
For some obscure reason _validate used to immediately
rollback the current transaction as soon as a constraint
failed anywhere. This is completely incorrect and
violates the transaction abstraction: the responsibility
of creating and closing transactions belongs to the
RPC dispatch layer, or whatever takes its place (e.g. the
test setup/teardown for tests). Rolling back or committing
in the middle of a transaction precludes special
error treatment and can have very bad side effects.
bzr revid: odo@openerp.com-20121029180742-2gw08kobdh7w5njc
Diffstat (limited to 'addons/note/note_data.xml')
0 files changed, 0 insertions, 0 deletions
