mirror of
https://github.com/Ladebeze66/odoo_toolkit.git
synced 2025-12-17 06:57:47 +01:00
J6-2
This commit is contained in:
parent
e34c989d34
commit
8d248a4800
Binary file not shown.
@ -81,7 +81,7 @@ class TicketManager:
|
|||||||
|
|
||||||
for field, info in fields_info.items():
|
for field, info in fields_info.items():
|
||||||
if info.get("type") == "many2one" and isinstance(ticket.get(field), list):
|
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
|
return ticket
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user