Skip to Content
Menu
This question has been flagged
2219 Views

Hello all,


Please how do you inherit a non model core class in openerp

Below code does not work for when trying to subclass openerp web OpenERPSession class in web/session.py


import openerp
from openerp.addons.web.session import OpenERPSession

class NewOpenERPSession(OpenERPSession):
def authenticate(self, db, login, password, env=None):
import pdb; pdb.set_trace()
print "Hello World"
res_users = self.pool.get('res_users')
return super(WebSession, self).authenticate(self, db, login, password, env=None)
Avatar
Discard
Related Posts Replies Views Activity
2
May 22
31156
0
Mar 19
2685
0
Jan 19
3632
4
Feb 24
10712
0
Jan 18
2778