Set not null for boolean and not a default value
This commit is contained in:
1 parent
8769a5cd43
commit
2e4b1dbb98
1 file changed
+1
-1
+1
-1
@@ -448,7 +448,7 @@ class ORM(object):
|
||||
table.db_default(field_name, 0)
|
||||
|
||||
if isinstance(field, fields.Boolean):
|
||||
table.db_default(field_name, False)
|
||||
table.not_null_action(field_name, 'add')
|
||||
|
||||
if isinstance(field, fields.Many2One):
|
||||
if field._obj in ('res.user', 'res.group'):
|
||||
|
||||
Reference in new issue
Block a user