Skip to Content
Menú
This question has been flagged
1 Respondre
11145 Vistes

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
Descartar
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
Descartar
Autor

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

Related Posts Respostes Vistes Activitat
0
de gen. 17
2290
1
de gen. 17
2834
1
d’abr. 15
7980
0
de set. 23
41
4
de març 23
16710