I created this model:
class ir_model(orm.Model):
_inherit = 'ir.model'
_columns = {
'm2x_creation_lock_type': fields.selection([('no-lock', 'Normal'), ('no-edit', 'Hide Create & Edit'), ('no-create', 'Hide both buttons')], required=True, string='ManyToOne / ManyToMany creation lock type', help="Tells whether the 'Create' or 'Create and Edit' selection items should be displayed or not"),
}
_defaults = {
'm2x_creation_lock_type': 'no-create'
}
But when the column is created, it does not have a `DEFAULT 'no-create'` part.
How can I make my column have a DEFAULT value part without manually executing SQL on the database?