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

how to attach a file to sales order programmatically?

By
Vivekrajan
on 6/9/14, 6:03 AM 1,605 views

Hi,

How do I attach a file to a sales order programmatically? I want to know how this is done in both 6.1, 7 and the new 8 version of Odoo (OpenERP)

0
Eric
On 6/9/14, 6:32 PM

I followed the example here to send email attachments. Hope this helps

http://www.tutorialspoint.com/python/python_sending_email.htm

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 6/10/14, 4:26 AM

Vivek,

Please follow addons/email_template/email_template.py generate_email()!

Thanks.

0
Juan José Scarafía
On 6/10/14, 9:26 AM

Hi Vivek,

You can look this module we develop where we add in a sale order the attachments of products related to the sale order:

http://bazaar.launchpad.net/~ingenieria-adhoc/adhoc-oerp/7.0/files/head:/sale_order_mail_product_attachment/

That would be to do "programmatically", if not, just in emails template in the second tab you can choose attachments to be sent together to the email.

Regards,

Juan José - Ing ADHOC

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

2 follower(s)

Stats

Asked: 6/9/14, 6:03 AM
Seen: 1605 times
Last updated: 3/16/15, 8:10 AM