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

Displaying an attachement in a mail.message programmatically

By
Nicolas Clavier
on 12/22/15, 5:33 AM 303 views

Hello, 

Code question on V8.0 refers to method message_post() of mail addon.

How can I set an attachement to be displayed at the bottom of a mail.message after posting a message programmatically ? 

I provided the method message_post() with the attachements list of attachment tuples in the form ``(name,content)``, the upload process works fine, the attachements are listed in the attachements menu of the thread_id (actually the partner in my case) but the attachement is not shown as an icon in the corresponding message in the timeline below the partner. 

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: 12/22/15, 5:33 AM
Seen: 303 times
Last updated: 12/22/15, 5:34 AM