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 store and retrieve image in postgre sql?

Demirel yakito
on 1/19/15, 8:46 AM 389 views



@Ramanan, I think you need to define your question a little more specifically. There could be several hundred different answers to your question as it is far to general. You need to map out for yourself exactly what you are trying to achieve in detail, and then once you have defined this you need to provide a more detailed question so that people in this forum can offer help depending on exactly what you are trying to do. Do you want to store an image in product.template? Where would you like it to be 'retrieved' to, what view?

Luke Branch
on 1/19/15, 9:23 AM
On 1/19/15, 9:03 AM

abin = fields.Binary() is the field used in creating a binary field which can be used for all kind of attachments..

but for image use widget in field like

<field name="abin" widget="image"/>

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

1 follower(s)


Asked: 1/19/15, 8:46 AM
Seen: 389 times
Last updated: 3/16/15, 8:10 AM