Remove required from tech_name mixin

In some cases, we want to use a tech_name, but we do not use server
environment on all the records, so tech_name should not be required.
This commit is contained in:
Guewen Baconnier 2021-01-14 09:12:48 +01:00 committed by Marcos Oitaben
parent f9f1cdc5dd
commit 82237b9503
1 changed files with 1 additions and 2 deletions

View File

@ -38,8 +38,7 @@ class ServerEnvTechNameMixin(models.AbstractModel):
# TODO: could leverage the new option for computable / writable fields # TODO: could leverage the new option for computable / writable fields
# and get rid of some onchange / read / write code. # and get rid of some onchange / read / write code.
tech_name = fields.Char( tech_name = fields.Char(
required=True, help="Unique name for technical purposes. Eg: server env keys.",
help="Unique name for technical purposes. " "Eg: server env keys.",
) )
_server_env_section_name_field = "tech_name" _server_env_section_name_field = "tech_name"