콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7216 화면

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
2443
2
6월 25
823
3
6월 24
3616
1
3월 23
4000
2
12월 22
14922