Allow to edit all fields on creation

This commit is contained in:
Guewen Baconnier 2018-07-19 22:28:25 +02:00
parent 9ae51f3c68
commit 9ee47dc5d2
1 changed files with 3 additions and 0 deletions

View File

@ -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)