跳至内容
菜单
此问题已终结
1 回复
7196 查看

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 ?

相关帖文 回复 查看 活动
2
8月 25
2431
2
6月 25
785
3
6月 24
3602
1
3月 23
3982
2
12月 22
14907