OPENERP登录后出现错误

OPENERP登录后出现错误

您好,我有 OpenERP 版本 7。此应用程序安装在 Centos 6.4 x64 上,并使用 PosgtreSQL,并且此数据库安装在集群上。当我尝试登录时,我看到此错误:

在此处输入图片描述

这是来自 OpenERP 日志文件的错误:

 2014-05-28 12:52:33,245 25598 INFO openerp_preprod werkzeug: 192.168.178.220 - - [28/May/2014 12:52:33] "GET / HTTP/1.1" 200 -
 2014-05-28 12:52:33,366 25598 INFO openerp_preprod werkzeug: 192.168.175.155 - - [28/May/2014 12:52:33] "POST /web/menu/load HTTP/1.1" 200 -
 2014-05-28 12:52:33,785 25598 INFO openerp_preprod werkzeug: 192.168.175.155 - - [28/May/2014 12:52:33] "POST /web/dataset/call_kw HTTP/1.1" 200 -
 2014-05-28 12:52:33,986 25598 INFO openerp_preprod werkzeug: 192.168.175.155 - - [28/May/2014 12:52:33] "POST /web/action/load HTTP/1.1" 200 -
 2014-05-28 12:52:34,121 25598 ERROR openerp_preprod openerp.tools.safe_eval: Cannot eval u"action= self.open_my_pref(cr, uid, context.get('active_ids', []), context=context)"
 Traceback (most recent call last):
 File "/opt/openerp/openerp-sr-test/current/server/openerp/tools/safe_eval.py", line 289, in safe_eval
   return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
 File "", line 1, in <module>
 AttributeError: 'res.users' object has no attribute 'open_my_pref'
 2014-05-28 12:52:34,125 25598 ERROR openerp_preprod openerp.osv.osv: Uncaught exception
 Traceback (most recent call last):
 File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 132, in wrapper
   return f(self, dbname, *args, **kwargs)
 File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 187, in execute_cr
  return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/openerp-sr-test/current/server/openerp/addons/base/ir/ir_actions.py", line 611, in run
eval(action.code.strip(), cxt, mode="exec", nocopy=True) # nocopy allows to return 'action'
File "/opt/openerp/openerp-sr-test/current/server/openerp/tools/safe_eval.py", line 289, in safe_eval
  return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
AttributeError: 'res.users' object has no attribute 'open_my_pref'
2014-05-28 12:52:34,125 25598 ERROR openerp_preprod openerp.netsvc: 'res.users' object has no attribute 'open_my_pref'
Traceback (most recent call last):
File "/opt/openerp/openerp-sr-test/current/server/openerp/netsvc.py", line 297, in dispatch_rpc
  result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/openerp-sr-test/current/server/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 190, in execute_kw
  return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 132, in wrapper
  return f(self, dbname, *args, **kwargs)
File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/openerp-sr-test/current/server/openerp/osv/osv.py", line 187, in execute_cr
 return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/openerp-sr-test/current/server/openerp/addons/base/ir/ir_actions.py", line 611, in run
eval(action.code.strip(), cxt, mode="exec", nocopy=True) # nocopy allows to return 'action'
File "/opt/openerp/openerp-sr-test/current/server/openerp/tools/safe_eval.py", line 289, in safe_eval
  return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
File "", line 1, in <module>
AttributeError: 'res.users' object has no attribute 'open_my_pref'

请给我一些建议,哪里出了问题?之后

答案1

可能您已经解决了这个问题,但对于其他问题......

您的 xml 代码中某处引用了一个字段open_my_pref,但 OpenERP / Odoo 在 python 中找不到它,或者在某些情况下反之亦然。如果该字段open_my_pref尚未在代码中定义,请相应地编辑您的代码。如果已定义,请从“设置”页面更新定义它的模块或使用以下标志运行 OpenERP。-u <module_name> -d <database_name>

相关内容