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