Odoo Help

Welcome!

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.

0

NameError: name 'models' is not defined

By
Apoorv Soral
on 11/17/16, 7:09 AM 146 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

--Axel Mendoza--
10203
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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

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

1 follower(s)

Stats

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