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

I want our customers to view there helpdesk tickets online (like in the send message option), but i cannot find the variable that i need to put into the email template: ticket:acknowledgement.

Wich variable do i use for that?

we are using Odoo v12.



아바타
취소
베스트 답변

Try access_url (for certain pages also website_url)

UPDATE

For sure, access_url does not exist in vacuum, it is an attribute of the model. I guess, you mean in your question the model 'helpdesk.ticket'. The object itself might be referenced differently depending on used controller. If I’m not mistaken in portal templates it should be ‘ticket’, in email templates it is object.

Besides, what do you mean by href="${access_url}"?? Dynamic variables should be used with ‘t-’ positioning. E.g.:

 <a t-attf-href="${object.access_url}">link</a>

 Take also in account that email templates and portal pages have different syntax. So, for example, ‘$’ is hardly applicable to sites.




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

i tried: <a href="${access_url}">link</a> and <a href="${website_url}">link</a> but that did not work...

아바타
취소

have a look at the update

관련 게시물 답글 화면 활동
1
7월 20
4225
2
1월 24
4443
2
1월 24
10173
1
3월 21
9676
0
1월 19
7221