Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7183 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

Hi,

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

Does this work ?

Powiązane posty Odpowiedzi Widoki Czynność
2
sie 25
2428
2
cze 25
782
3
cze 24
3601
1
mar 23
3977
2
gru 22
14906