安装模块odoo时出错:模块加载失败

时间:2016-03-30 15:05:17

标签: python git python-2.7 openerp

我已经开发了这个模块,但我无法运行它,我不断得到这个错误的轨道,不知道它是什么,谢谢你们。

Traceback (most recent call last):
File "C:\Users\Utilisateur\git\persol\odoo\openerp\http.py", line 405, in response_wrap
response = f(*args, **kw)
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "C:\Users\Utilisateur\git\persol\odoo\addons\web\controllers\main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 447, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\addons\base\module\module.py", line 495, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 355, in load_modules
loaded_modules, update_module)
File "C:\Users\Utilisateur\git\persol\odoo\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 "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "C:\Users\Utilisateur\git\persol\odoo\openerp\modules\loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 894, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "C:\Users\Utilisateur\git\persol\odoo\openerp\tools\convert.py", line 962, in convert_csv_import
raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading mgmtsystem_dysfunction failed: file mgmtsystem_dysfunction\security/ir.model.access.csv could not be processed:
Line 1 : id,"name","model_id

1 个答案:

答案 0 :(得分:1)

查看最后一行中的错误,告诉:

Line 1 : id,"name","model_id

这是因为CSV文件格式错误。转到这样的文件(在上面的一行表示为:mgmtsystem_dysfunction\security/ir.model.access.csv)并平衡双引号(最后一个丢失)或删除它们。