Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2906 Lượt xem

Hello,

I've created a new email template for expenses, so when new expenses are created, I'll receive a notification in my email.

But the question is how can I add a button in the template to take me directly to the new expense?

I just need the link as below:

t-attf-href=" LINK "


Thank you,


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Set the email template name and subject.
In the "Body HTML" field, you can design your email as needed, including the button. To add a button, you can use HTML and Odoo placeholders for dynamic data.
Here's an example of an HTML button in the email template:

Html;-

<a t-attf-href="/web?#id={{ object.id }}&amp;view_type=form&amp;model=hr.expense"" style="text-align: center;color: #008CBA;background-color: #008CBA;">View Expense</a>



by using the above HTML code you can create a button in the email template

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 23
1623
2
thg 9 24
3746
1
thg 9 25
1507
1
thg 2 25
1721
0
thg 1 25
1311