Skip to Content
Menu
This question has been flagged
1 Reply
9920 Views

I have created an email template for sale order confirmed. how to hyperlink the sale order confirmed in my email send, ie, if they click on the sale order it needs to go to the confirmed sale order.

this is my template,

<record id = "rso_service_sale_order_confirmed_mail" model = "email.template">

<field name = "name"> RSO service sale order confirmed mail </ field>

<field name = "email_from">  </ field>

<field name = "subject"> Sale Order Confirmed Service </ field>

<field name = "email_to">  </ field>

<field name = "model_id" ref = "sale.model_sale_order" />

<field name = "body_html"> <! [CDATA [

<div style = "font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb (34, 34, 34); background-color: #FFF;">

<P> Dear </ p>

<p> Order Signed by $ {object.partner_id.name or 'Customer'}

<p> about $ {object.name or 'Quotation'} </ p> #saleorder confirmed

<p> Thank You </ p>

</ Div>

]]> </ Field>

</ Record>

Avatar
Discard
Best Answer

Hi,

For you the better way is to refer the template named : Sales Order - Send by Email , which is there in odoo. In this email template , a button along with the mail is send and upon clicking the button the quotation will be opened for the portal users.

I think this template can help you.

Go to Settings -> Technical -> Email -> Templates, search the above template

If you want to get in the code, navigate sale -> data -> mail_template_data.xml. Here see the record named email_template_edi_sale

Thanks

Avatar
Discard
Author

@niyas raphy, I have added a button along with the mail. thank you for your valuable information.

Related Posts Replies Views Activity
0
Jan 17
1692
1
Jan 17
2060
1
Apr 15
7125
0
Sep 23
41
4
Mar 23
15287