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
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
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
|Asked: 3/31/15, 4:33 AM|
|Seen: 846 times|
|Last updated: 4/3/15, 3:01 AM|