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

send mail via mailto tag with attachment

By
Wolfgang Steuer
on 9/19/13, 4:04 PM 2,544 views

I want that pressing the send mail button opens up my standard email program with a new email with the attached quotation, sale order or invoice. I need that because the sent emails from openerp needs to be in the sent folder from outlook afterwards.

Example: < a href="mailto:{partner_id.email}?subject=Quotation {o.name}&body=Some text&attachment=/web/report/?which=parameters">Send Email< /a>

Or how would I write such an action in python? What is the path to the report? How can I read the email address of the current partner_id in sale.order?

Thx!

0
Wolfgang Steuer
On 9/24/13, 8:12 AM

Actually this was the wrong approach, too complicated.

Solved it by changing the email templates: - enable technical features for the users - goto Settings/Technical/Email/Templates) - Added CC ${user.email or ''}

So a copy of the email is being sent to the current logged in user. In Outlook you than can add a rule to automatically move the emails to the sent folder ... or a specific openerp folder ...

(this is just for testing - bare in mind when you update your openerp installation you will loose these changes - always put your changes in your own module!!!)

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

0 follower(s)

Stats

Asked: 9/19/13, 4:04 PM
Seen: 2544 times
Last updated: 3/16/15, 8:10 AM