跳至内容
菜单
此问题已终结
3 回复
25617 查看

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

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

编写者

Hi Sarga

you are right. there was the spelling mistake.

thank you

最佳答案

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

形象
丢弃