Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
11236 Vistas

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
Mejor respuesta

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.

Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 17
2378
1
ene 17
2906
1
abr 15
8069
0
sept 23
41
4
mar 23
16807