Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[9.0]Using a different email template for sending orders and invoices

By
Kenneth Hansen
on 9/7/16, 4:06 AM 147 views

Hi

We are facing an issue where we are unable to make a custom email template to be used as a default for sending sales orders and invoices via email from Odoo.

We have created the custom email template as a new template, but every single time we have to send a sales order via email it uses the default template and we have to manually choose the custom template that we created.

Is there a way to have Odoo use our custom template as the default template?

0
Kinner Vachhani
On 9/7/16, 6:21 AM

Hi Kenneth,

@salesorder

When you click on send email button on sale order it opens up mail compose wizard. At botton of mail.compose wizard you will see a selection box allowing to choose template. Please note that the template related to object sale.order will only be visible on that wizard.


@Invoice

Same as above.


Let me know if this resolves your issue. 


Hi Kinner

I know that I can select it in that wizard, but the problem is that I can choose it for sending salesorder 1, but when I go to send salesorder 2, I have to choose the correct template again. What we want is to be able to set our custom template as the default so that it is always selected automatically when we open the wizard.

Do I really have to edit the default that comes with Odoo to archive this?

Kenneth Hansen
on 9/7/16, 6:37 AM

Unfortunately there isn't any easy way of doing it.

In the code sale/sale.py : 363 def action_quotation_send

it is setting email_template_edi_sale template by default. Now there are two ways I can see.

1. Modify original email template and tailored it according to your need (Most of people I know choose this option).

2. Override action_quotation_send method and make your custom template default. Note: you need to this for invoice as well.

Kinner Vachhani
on 9/7/16, 6:58 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/7/16, 4:06 AM
Seen: 147 times
Last updated: 9/7/16, 6:21 AM