Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
7205 Представления

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить

Hi,

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

Does this work ?

Related Posts Ответы Просмотры Активность
2
авг. 25
2435
2
июн. 25
789
3
июн. 24
3605
1
мар. 23
3985
2
дек. 22
14910