Odoo Help


Which table stores image in openerp

on 1/24/14, 8:07 AM 1,057 views

Hi All,

I have created module where employee can upload their image. Module works perfectly. No issue with saving /displaying employee record including image.

But I would like to know where exactly image file is stored ?

Thanks. Here is my class and img field holds file name. Please let me know in which table image is stored and how it is related to test_base table ?

from osv import osv

from osv import fields

class test_base(osv.osv):
        'mydate':fields.date('My Date'),
        'code':fields.integer('Unique ID'),
        'rate':fields.selection([(10,'10'), (20,'20'),(30,'30')],'Percentage of Deduction'),
        'bdisplay':fields.float('Net Salary'),
        'image': fields.binary("Image", help="Select image here"),


The table that store the image is test_base. Your self defined this in the columns('image': fields.binary("Image", help="Select image here")). This table of model test.base, have binary field and in this fields is where the image is stored in binary format.

Jose Angel Inda Herrera
on 1/28/14, 12:36 PM

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

1 follower(s)


Asked: 1/24/14, 8:07 AM
Seen: 1057 times
Last updated: 3/16/15, 8:10 AM