Skip to Content
Menú
This question has been flagged
1 Respondre
7209 Vistes

Hi friends,

I need to change code for web_login function in web/controllers/main.py

class name Home.I dont know how to inherit for that.Can anyone share how to do it

Thanks in advance

Avatar
Descartar
Best Answer

from odoo.addons.web.controllers.main import Home


class Home(Home):

   def web_login(self, all prms):

       res = super(Home, self).web_login(all parms)

      #update the code 

      return res

Avatar
Descartar

Hi,

I need to change "web_auth_signup" action to send an e-mail after registering a new member.

Does this work ?

Related Posts Respostes Vistes Activitat
2
d’ag. 25
2437
2
de juny 25
805
3
de juny 24
3607
1
de març 23
3994
2
de des. 22
14914