悲催。看论坛这么久,不知道在哪里发帖。
@卓忆 @各位大神
问下,odoo8.0,环境centos7,我装了自动备份模块,如果是新安装的环境能自动备份(该模块无问题)。但是如果是别的环境的备份还原后,点击设置,配置,数据库备份,会报如下错误:
(注,除了这个菜单点击后报错,其他一切正常)
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 543, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 580, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 313, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 809, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 409, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/site-packages/openerp/addons/web/controllers/main.py", line 1247, in load
action = request.session.model(action_type).read([action_id], False, ctx)
File "/usr/lib/python2.7/site-packages/openerp/http.py", line 914, in proxy
result = meth(cr, request.uid, *args, **kw)
File "/usr/lib/python2.7/site-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/addons/base/ir/ir_actions.py", line 326, in read
results = super(ir_actions_act_window, self).read(cr, uid, ids, fields=fields, context=context, load=load)
File "/usr/lib/python2.7/site-packages/openerp/api.py", line 268, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/models.py", line 3144, in read
result = BaseModel.read(records, fields, load=load)
File "/usr/lib/python2.7/site-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/models.py", line 3179, in read
self._read_from_database(stored, inherited)
File "/usr/lib/python2.7/site-packages/openerp/api.py", line 266, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp/models.py", line 3366, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/usr/lib/python2.7/site-packages/openerp/osv/fields.py", line 1460, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/usr/lib/python2.7/site-packages/openerp/addons/base/ir/ir_actions.py", line 266, in _search_view
field_get = self.pool[act.res_model].fields_view_get(cr, uid,
File "/usr/lib/python2.7/site-packages/openerp/modules/registry.py", line 102, in getitem
return self.models[model_name]
KeyError: u'db.backup'
不胜感激!