Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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) 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
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
Restore the dump file
Go to Pgadmin :
delete from base_action_rule;
Now try to login to erp. I am not sure but if this tricks works well and good.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/6/14, 8:45 AM|
|Seen: 1012 times|
|Last updated: 3/16/15, 8:10 AM|