Odoo Help


how to automatically attached a pdf with python (an attachment)

Coralie Cardon
on 3/31/15, 4:33 AM 1,973 views


When i press a button i would like the attachment is automatically attached with a product for example.

My attachment is on my computer :)

Can you help me ?

Thanks if you know the answer 

Coralie Cardon
On 3/31/15, 8:34 AM

in fact i download an attachment for put it and attached it with a product  

and i woould like to use the module "document management system" 

Tharcisse Mukundayi
On 3/31/15, 8:19 AM


First of all, when you says "on my computer" does it means that your odoo is installed on the same computer too or on a different one?

If its on the same machine, then python has built-in functions to access files. check this thread for more info: http://stackoverflow.com/questions/3362600/how-to-send-email-attachments-with-python .

If your odoo server is on a remote machine, you have to understand that all the core python codes are executed on the server and not on the client machine

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.


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

1 follower(s)


Asked: 3/31/15, 4:33 AM
Seen: 1973 times
Last updated: 4/3/15, 3:01 AM