콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4018 화면
Hi everybody,

i need your help.

im trying to edit the list that appears in a box when you hover the item in the gantt view.

i use t-esc but when i want to display for example the employee's name...

it works but i've the id too...

i just want the name...



here is an example :

< li>< t t-esc="employee_id"/ >< /li >

give this

432, employee name



i just want the employee's name and not the id before.

i hope someone can help me on this.

best regards

Max
아바타
취소
작성자 베스트 답변

I found the solution myself.

for those with the same problem just put [1]

t-esc="partner_id[1]"

it will display just the name without the id number.

아바타
취소
베스트 답변

Hello, 

Try  t-esc="employee_id.name"  or  t-esc="employee_id.display_name"

You can use the same idea for any other field, such as:

- employee_id.phone, employee_id.job_title

- employee_id.parent_id (for his manager)

- and even employee_id.parent_id.phone (for his manager's phone)


If this answer solved your problem, please mark it as best answer


아바타
취소
관련 게시물 답글 화면 활동
2
8월 24
2995
2
2월 24
1862
1
5월 21
9003
1
10월 20
2648
1
3월 20
3610