This question has been flagged
1 Reply
3710 Views

le to login to OpenERP7 up vote 0 down vote favorite

I am stuck in really weird problem, and i am unable to figure out the cause of the problem. i have OpenERP installed on my development environment and production environment, both on Ubuntu. On Dev site all is working fine. Earlier yesterday, on production it was working ok. but all of a sudden i started getting error:

AttributeError: 'NoneType' object has no attribute 'create'

here is the full trace of the error from pop up:

Client Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.7/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/controllers/main.py", line 867, in authenticate
    req.session.authenticate(db, login, password, env)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 115, in authenticate
    uid = self.proxy('common').authenticate(db, login, password, env)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 30, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 103, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 433, in dispatch
    return fn(*params)
  File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 444, in exp_authenticate
    res_users = pooler.get_pool(db).get('res.users')
  File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 49, in get_pool
    return get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 192, in get
    update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 435, in load_modules
    model._register_hook(cr)
  File "/usr/lib/pymodules/python2.7/openerp/addons/base_action_rule/base_action_rule.py", line 201, in _register_hook
    model_obj.create = self._wrap_create(model_obj.create, model)
AttributeError: 'NoneType' object has no attribute 'create'

after i close popup i am still on my openERP login form.

I am not sure what actually has happened. All i was trying to change my modules UI using view.xml. I used this xml file to recreate this issue on my dev server, but on my dev server it is working perfectly. Plz let me know if this is because of permission issue(though i cant remember messing around with permissions).

Plz let me know what i am doing wrong. If any furthur info is needed, feel free to ask for that. Thanks

Avatar
Discard
Best Answer

Hello

I think this is regarding access rule issue because "base_action_rule" tabl e is related to access rules.

I would suggest following steps ->

1, Take dump of your current Database

  1. Restore the dump file

  2. Go to Pgadmin :

    delete from base_action_rule;

  3. Now try to login to erp. I am not sure but if this tricks works well and good.

Avatar
Discard