Odoo Help

0

How to Send email automatically for Purchase order, RFQ, invoice etc?

By
white
on 4/22/13, 4:37 AM 2,214 views

Current process we have dedicated button for email. It is possible that user may confirm Purchase order but forget to click email button to send purchase order via email. This will cause major usability issue.

Is their any way we can automatically email when purchase order is confirmed?

Thank you

Hello everyone! I try to send email automatically by adding this Python code to Server action: template_obj = self.pool.get('email.template') template_inst = template_obj.search(cr,uid,[('name','=','Invoice - Send by Email')])[0] action = template_obj.send_mail(cr,uid,template_inst,object.id,False,context)

The email has been created, based on template and with attachment of invoice, but the "send_to" field stays empty. So email stays in the folder Email->Emails. How can i solve this problem?

Anna Ostapenko
on 7/16/13, 6:39 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 platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

Asked: 4/22/13, 4:37 AM
Seen: 2214 times
Last updated: 5/3/16, 12:41 PM