diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-06-20 11:53:59 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-06-20 11:53:59 +0200 |
| commit | 5b1beec1f2840f3558b279b5726b0afa722128db (patch) | |
| tree | 1814a0833565ba72256134de861ad88d5bec1f3a /doc/reference | |
| parent | 8a1d7dfe7bd82473f33400c0e933142261bc30b6 (diff) | |
[FIX] models: commit *before* trying to set NOT NULL constraint
Setting NOT NULL constraints on required fields may fail if there are
any row with unset value for this column.
The ORM handle this case by catching the exception raised and warning
user.
However, not commiting the current transaction before, will rollback
changes made before like setting default values or renaming a column.
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions
