跳至內容
選單
此問題已被標幟
1 回覆
7218 瀏覽次數

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
2444
2
6月 25
825
3
6月 24
3618
1
3月 23
4000
2
12月 22
14924