Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7189 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

Hi,

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

Does this work ?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2430
2
thg 6 25
784
3
thg 6 24
3602
1
thg 3 23
3980
2
thg 12 22
14907