Allow to edit all fields on creation

This commit is contained in:
Guewen Baconnier 2018-07-19 22:28:25 +02:00 committed by Stéphane Bidoul (ACSONE)
parent d7f0a1b24b
commit c5f56e6336
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 3 additions and 0 deletions

View File

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