FIX get_name for study #3

Closed
b0g wants to merge 6 commits from 16.0-pre-release-fix into 16.0
Showing only changes of commit 99e3a22877 - Show all commits

View File

@@ -83,4 +83,6 @@ class StudyStudy(models.Model):
@api.depends("title", "name")
def name_get(self):
if not self.name:
return [(study.id, study.title) for study in self]
return [(study.id, f"[{study.name}] {study.title}") for study in self]