Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created August 7, 2020 11:02
Show Gist options
  • Select an option

  • Save sehrishnaz/12ba39b5eaa69110321e802b280f1064 to your computer and use it in GitHub Desktop.

Select an option

Save sehrishnaz/12ba39b5eaa69110321e802b280f1064 to your computer and use it in GitHub Desktop.
Inherit web login controller in odoo
from openerp import http
from openerp.http import request
from openerp.addons.web.controllers.main import Home
class Extension_Home(Home):
@http.route()
def web_login(self, redirect=None, **kw):
if 'login' in kw:
#your_logic_goes_here()
return super(Extension_Home, self).web_login()
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment