Allow to edit all fields on creation
This commit is contained in:
parent
9ae51f3c68
commit
9ee47dc5d2
|
|
@ -269,6 +269,9 @@ class ServerEnvMixin(models.AbstractModel):
|
|||
field = fields.Boolean(
|
||||
compute='_compute_server_env_is_editable',
|
||||
automatic=True,
|
||||
# this is required to be able to edit fields
|
||||
# on new records
|
||||
default=True,
|
||||
)
|
||||
self._add_field(fieldname, field)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue