[TRUNK] AttributeError: 'OpenERPSession' object has no attribute 'config'

Bug #861559 reported by Maxime Chambreuil (http://www.savoirfairelinux.com)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Using trunk branches, when I arrive on the login page I get:

[2011-09-28 16:27:32,936][?] ERROR:web.common.dispatch.JSONRequest.dispatch:An error occured while handling a json request
Traceback (most recent call last):
  File "/home/max/openerp/web/trunk/addons/web/common/dispatch.py", line 161, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 575, in load
    return {'data': self.do_load(req)}
  File "/home/max/openerp/web/trunk/addons/web/controllers/main.py", line 585, in do_load
    Menus = req.session.model('ir.ui.menu')
  File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 93, in model
    return self.build_connection().get_model(model)
  File "/home/max/openerp/web/trunk/addons/web/common/session.py", line 44, in build_connection
    if self.config.backend == 'local':
AttributeError: 'OpenERPSession' object has no attribute 'config'

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello Maxime ,

I have tested your scenario at my end. But I did not get any traceback.

I have attached a video for your reference so please check it and notify me where you faced the problem?

Would you please provide me your revision no .

I have checked with following revision :

Trunk :

  New web Client : 1110
    Server : 3671
    addons : 5235

Thanks and waiting for your reply.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

Can you share the command line you use to launch the new web server?

On the login screen, the database field is not a dropdwon list but an text field. I suspect a connection problem to the server.

Thank you.

Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

By the way, I use:
* server: 3675
* web: 1114
* addons: 5235

Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

Hello,

I have checked completely your bug report
I think you might have mistake at your end
please run the openerp server properly

./openerp-server --addons=../openobject-addons/

then connect with webclient.

The problem occurs due to your end problem so this is not a bug and I am closing this issue.

If you still face a same problem then you can reopen this issue.

Thanks.

Changed in openerp-web:
status: Incomplete → Invalid
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :

I re-did my config file from scratch and it's working now.

Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.