Skip to Content
Menu
This question has been flagged
1 Atsakyti
7490 Rodiniai

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

Portretas
Atmesti
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

Portretas
Atmesti

Hi,

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

Does this work ?

Related Posts Replies Rodiniai Veikla
2
rugp. 25
3023
2
birž. 25
1522
3
birž. 24
4313
1
kov. 23
4548
2
gruod. 22
15419