تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4068 أدوات العرض

I'm trying to customize a mail template in Sales Order. I want to add a button in the mail template to approve a quotation. Meaning, if the user clicked  it will go to the signin url in odoo or to the url of the quotation.

الصورة الرمزية
إهمال
أفضل إجابة

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=sale.order"" style="text-align: center;color: #008CBA;background-color: #008CBA;">View Sales Order</a>

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

Hope it helps

الصورة الرمزية
إهمال
الكاتب

hello! thank you for your comment. what i wanted to link is the Customer Preview smart button. how can i do that?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أبريل 24
933
1
سبتمبر 23
2890
0
سبتمبر 23
1421
0
أبريل 24
1464
1
يناير 24
1899