Comment obtenir un nom référencé

Bonjour,

J’aimerai ajouter une colonne « nom de projet » à la vue en tableaux des évènements CRM, mais quand j’ajoute field name=« relatedToSelectId »/ , ca me donne un chiffre qui est le ID dans com.axelor.apps.project.db.Project et non sa description. Qu’est ce que je devrai écrire ?
Screenshot 2021-10-05 153659

Merci de vos aides,

-bliu

can you share gist what’s you wrote

Hi, below is the code I have: field name=« relatedToSelectId »

<grid name="event-grid" title="Events" model="com.axelor.apps.crm.db.Event" orderBy="-startDateTime" edit-icon="true">
  <hilite color="primary" if="statusSelect == 1 &amp;&amp; startDateTime  &lt;= __datetime__"/>
  <hilite color="warning" if="statusSelect == 1 &amp;&amp; startDateTime  > __datetime__"/>
  <hilite color="success" if="statusSelect == 2"/>
  <hilite color="danger" if="statusSelect == 3"/>
  <field name="startDateTime"/>
  <field name="partner"/>
  <field name="contactPartner"/>
  <field name="subject"/>
  <field name="relatedToSelectId"/>
  <field name="statusSelect" width="100"/>
  <field name="user" form-view="user-form" grid-view="user-grid" width="100"/>
</grid>

it’s related model right? I meant one to many or other relationship you defined

yes, and not sure how to reference it since the description is not stored with « event » db but with « project » db. I have to use the ID from « event » to get the corresponding « project » description. I have attached the info card. Thanks again for the help.
Screenshot 2021-10-06 153515