Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion server_environment/models/server_env_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,16 @@ def _server_env_global_section_name(self):

_server_env_section_name_field = "name"

def _server_env_record_name(self):
return self[self._server_env_section_name_field]

def _server_env_section_name(self):
"""Name of the section in the configuration files

Can be customized in your model
"""
self.ensure_one()
val = self[self._server_env_section_name_field]
val = self._server_env_record_name()
if not val:
# special case: we have onchanges relying on tech_name
# and we are testing them using `tests.common.Form`.
Expand Down