Odoo Help


How to add attachment in code

on 3/5/13, 11:47 AM 692 views


I've been using OpenERP v6.1. I've custom module which generates svg from product information. And I would like to add that generated svg as an attachment to the product. I have product_id, svg stored on the server.

Is there any easy way to do it or should I use an ORM method and insert an attachment directly?

Thanks in advance, Tomas

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 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

0 follower(s)


Asked: 3/5/13, 11:47 AM
Seen: 692 times
Last updated: 3/16/15, 8:10 AM