Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7191 Vistas

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
Mejor respuesta

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 ?

Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 25
2430
2
jun 25
785
3
jun 24
3602
1
mar 23
3980
2
dic 22
14907