Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ProgrammingError: relation "_unknown" does not exist LINE 1

Tags:

python

odoo

I'm getting this error in Odoo:

ProgrammingError: relation "_unknown" does not exist LINE 1: SELECT "_unknown".id FROM "_unknown" ORDER BY "_unknown"."id...

hotel class:

class obj_ghotel(osv.osv):
        _name = "obj.ghotel"
        _description = "Objet ghotel"
        ...
        'id_ville':fields.many2one('obj.ville','ville', 
selection=_get_selection), 

ville class:

class obj_ville(osv.osv):
    _name = "obj.ville"
    _description = "Objet ville"
    _rec_name = 'nom_ville'
    ...
        'id_hotel':fields.one2many('obj.ghotel','id_ville'),

I have to restart the Odoo services and PostgreSQL to fix the problem. I think the problem is in the dependencies. I'm stuck... Any ideas?

like image 771
Rad304 Avatar asked May 10 '26 02:05

Rad304


1 Answers

I fixed this problem, i only added that module name (ville) into openerp.py file in depend section..

like image 155
Rad304 Avatar answered May 12 '26 17:05

Rad304