[FIX] studies_base: #OPP315 clean study name

This commit is contained in:
Boris Gallet
2025-07-08 15:34:24 +02:00
committed by b0g
parent 72b567af47
commit 9518e06541

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]