Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6885 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 20
4177
2
ม.ค. 24
4385
Problem with email template (SOLVED) แก้ไขแล้ว
2
ม.ค. 24
10095
1
มี.ค. 21
9596
0
ม.ค. 19
7168