Odoo Help


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.


How to add attachment in code

on 3/5/13, 11:47 AM 613 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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