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.


Module doesn't create a table in the postgres database

on 12/30/13, 11:10 AM 1,012 views

I have create a module and can load the module in the openerp config. But when i check the database the table isn't created. Because of the fact the database table doesn't exists the views can't be created. Does any body know when/why a table doesn't get created in the postgres db.

#2 -*- coding: utf-8 -*-
from osv import osv, fields #, orm

class CodeTabelAansluitingElectrisch(osv.osv):
    """ Code Tabel Aansluiting Electrisch """
    _name = 'CodeTabelAansluitingElectrisch'
    _description = 'CodeTabelAansluitingElectrisch'
    _columns = {
       'naam' : fields.text('Naam', required=False, translate=False, help="De naam van de entry in de code tabel."),


AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
| 4 5 8
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
On 12/30/13, 12:11 PM

Check that the class being imported in your __init__.py file.

Right that solved the isue. Made a typo in the __init__.py file.

on 1/8/14, 4:56 AM

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: 12/30/13, 11:10 AM
Seen: 1012 times
Last updated: 3/16/15, 8:10 AM