0

我是openerp的新手。我创建了一个新模块,它已成功安装,一切正常。但是,当我尝试升级模块时,出现如下错误:

> 2013-05-09 14:59:45,117 7236 ←[1;31m←[1;49mERROR←[0m Fisc openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
 File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
   File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "C:\OpenErp\openerp\openobject-server\openerp\addons\base\module\module.py", line 456, in button_immediate_upgra
    return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
  File "C:\OpenErp\openerp\openobject-server\openerp\addons\base\module\module.py", line 418, in _button_immediate_func
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "C:\OpenErp\openerp\openobject-server\openerp\pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\registry.py", line 176, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 333, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 244, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 179, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 76, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 119, in _load_data
    tools.convert_csv_import(cr, module_name, pathname, fp.read(), idref, mode, noupdate)
  File "C:\OpenErp\openerp\openobject-server\openerp\tools\convert.py", line 931, in convert_csv_import
    raise Exception(_('Module loading failed: file %s/%s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading failed: file crm_livechat/crm_livechat\security/ir.model.access.csv could not be processed:
 Line 1 : No matching record found for external id 'crm.group_crm_user' in field 'Group'
2013-05-09 14:59:45,134 7236 ←[1;31m←[1;49mERROR←[0m Fisc openerp.netsvc: Module loading failed: file crm_livechat/crm_
 Line 1 : No matching record found for external id 'crm.group_crm_user' in field 'Group'
Traceback (most recent call last):
  File "C:\OpenErp\openerp\openobject-server\openerp\netsvc.py", line 361, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "C:\OpenErp\openerp\openobject-server\openerp\service\web_services.py", line 585, in dispatch
    res = fn(db, uid, *params)
  File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\OpenErp\openerp\openobject-server\openerp\osv\osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "C:\OpenErp\openerp\openobject-server\openerp\addons\base\module\module.py", line 456, in button_immediate_upgra
    return self._button_immediate_function(cr, uid, ids, self.button_upgrade, context=context)
  File "C:\OpenErp\openerp\openobject-server\openerp\addons\base\module\module.py", line 418, in _button_immediate_func
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "C:\OpenErp\openerp\openobject-server\openerp\pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\registry.py", line 176, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 333, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 244, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 179, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 76, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "C:\OpenErp\openerp\openobject-server\openerp\modules\loading.py", line 119, in _load_data
    tools.convert_csv_import(cr, module_name, pathname, fp.read(), idref, mode, noupdate)
  File "C:\OpenErp\openerp\openobject-server\openerp\tools\convert.py", line 931, in convert_csv_import
    raise Exception(_('Module loading failed: file %s/%s could not be processed:\n %s') % (module, fname, warning_msg))
Exception: Module loading failed: file crm_livechat/crm_livechat\security/ir.model.access.csv could not be processed:
 Line 1 : No matching record found for external id 'crm.group_crm_user' in field 'Group'
> c:\openerp\openerp\openobject-server\openerp\tools\convert.py(931)convert_csv_import()
-> raise Exception(_('Module loading failed: file %s/%s could not be processed:\n %s') % (module, fname, warning_msg))
4

1 回答 1

0

您的错误表明该错误来自security/ir.model.access.csv文件中的crm_livechat模块,它找不到crm.group_crm_user这种类型的组。请检查它是否定义了该组,如果您使用的是 7 或 6.1,那么我认为该组已从 crm 中删除,

于 2013-05-09T10:21:59.640 回答