The gantt view simply uses the name_get() result as printable name. Here is a result from a small ipython session:
In [11]: ids = connection.get_model("project.user.allocation").search([])
In [12]: ids Out[12]: [2]
In [13]: connection.get_model("project.user.allocation").name_get(ids) Out[13]: [[2, '1']]
The gantt view simply uses the name_get() result as printable name.
Here is a result from a small ipython session:
In [11]: ids = connection. get_model( "project. user.allocation ").search( [])
In [12]: ids
Out[12]: [2]
In [13]: connection. get_model( "project. user.allocation ").name_ get(ids)
Out[13]: [[2, '1']]