Odoo Help


How to add attachment in code

on 3/5/13, 11:47 AM 1,002 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

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: 1002 times
Last updated: 3/16/15, 8:10 AM