This commit is contained in:
Ladebeze66 2025-03-19 14:14:37 +01:00
parent e34c989d34
commit 8d248a4800
2 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class TicketManager:
for field, info in fields_info.items():
if info.get("type") == "many2one" and isinstance(ticket.get(field), list):
ticket[f"{field}_value"] = ticket[field[1]] #Ajoute la valeur lisible en plus du ID
ticket[f"{field}_value"] = ticket[field[1]] if len(ticket[field]) > 1 else None #Ajoute la valeur lisible en plus du ID
return ticket