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 Laurent Mignon (ACSONE)
parent b63ea4b3c0
commit 3b7ee2a691
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
# and get rid of some onchange / read / write code.
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"