Odoo Help

0

NameError: name 'models' is not defined

By
Apoorv Soral
on 11/17/16, 7:09 AM 729 views

Traceback (most recent call last):

  File "/home/pchouksey1/workspace/dexciss/core/openerp/service/server.py", line 936, in preload_registries registry = RegistryManager.new(dbname, update_module=update_module) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/registry.py", line 370, in new openerp.modules.load_modules(registry._db, force_demo, status, update_module) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/loading.py", line 355, in load_modules loaded_modules, update_module) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/loading.py", line 255, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/loading.py", line 143, in load_module_graph load_openerp_module(package.name) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/module.py", line 315, in load_openerp_module __import__('openerp.addons.' + module_name) File "/home/pchouksey1/workspace/dexciss/core/openerp/modules/module.py", line 80, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/home/pchouksey1/workspace/dexciss/repo/auction/__init__.py", line 1, in <module> import sales_auction File "/home/pchouksey1/workspace/dexciss/repo/auction/sales_auction.py", line 1, in <module> class sales_auction(models.Model):

NameError: name 'models' is not defined

from openerp import models, api, fields

Apoorv Soral
on 11/17/16, 7:13 AM

Hi apoorv

I think there is some issue with your in build odoo modules. Try upgrading base module .Can you please share your .py file

Sarga
on 11/17/16, 10:18 AM

Hi Sarga

you are right. there was the spelling mistake.

thank you

Apoorv Soral
on 11/19/16, 12:51 AM
0
Axel Mendoza
On 11/18/16, 3:31 AM

It seems to me that you are trying to install a module based on the new Odoo Api in an OpenERP 7 or lower install

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.

Register

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)

Stats

Asked: 11/17/16, 7:09 AM
Seen: 729 times
Last updated: 11/18/16, 3:31 AM