Здравствуйте, у меня 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'
Пожалуйста, дайте мне совет, что случилось? После
Возможно, вы уже решили этот вопрос, но для остальных ..
Ваш код где-то в xml ссылается на поле open_my_pref
но OpenERP / Odoo не может найти его в python или в некоторых случаях наоборот. Если поле open_my_pref
еще не определен в коде, измените свой код соответствующим образом. Если определено, обновите модуль, который определяет его, на странице настроек или запустите OpenERP со следующими флагами. -u <module_name> -d <database_name>