Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6418 Представления

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."),
   }

CodeTabelAansluitingElectrisch()
Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Автор

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