安装新模块时出现此错误。我已经多次更新模块列表以解决问题。但没有希望。这是我在终端上面对的痕迹。
2015-09-01 11:59:30,947 24953 ERROR software_001 openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/software/ws/odoo/80/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/software/ws/odoo/80/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/home/software/ws/odoo/80/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/software/ws/odoo/80/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/home/software/ws/odoo/80/openerp/addons/base/module/module.py", line 494, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/home/software/ws/odoo/80/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 355, in load_modules
loaded_modules, update_module)
File "/home/software/ws/odoo/80/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/software/ws/odoo/80/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/software/ws/odoo/80/openerp/modules/loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/software/ws/odoo/80/openerp/tools/convert.py", line 892, in convert_file
fp = misc.file_open(pathname)
File "/home/software/ws/odoo/80/openerp/tools/misc.py", line 199, in file_open
return _fileopen(name, mode=mode, basedir=rtp, pathinfo=pathinfo, basename=basename)
File "/home/software/ws/odoo/80/openerp/tools/misc.py", line 246, in _fileopen
raise IOError('File not found: %s' % basename)
IOError: File not found: test_module/
我检查了每个文件,但没有线索。
答案 0 :(得分:2)
此类错误的一种可能方式是__openerp__.py
文件中的空白数据。
您应该检查__openerp__.py
文件。数据列表中的空白值将导致此类错误。从数据列表中删除' '
或" "
。
{'name': 'Odoo Test',
'version': '0.0.1',
'category': 'Generic Modules/Others',
'license': 'AGPL-3',
'author': "atularvind",
'website': 'http://www.atularvind.com/',
'depends': [],
'data': ['test_view.xml'],# [] instead of ["",]
'demo': [],
'installable': True,
}
答案 1 :(得分:0)
由于安全原因,您不允许安装模块,您的模块操作不允许...... !! 因此,只需要做一件事就是使用Chmod 777为特定模块提供文件权限。 转到root>> cd / home / odoo / addons / browseinfo / 现在键入Command ==>> chmod 777 -R browseinfo /
那就是,你设置文件/文件夹的权限...... !!! 重启您的服务器&安装/升级您的模块...... !!!