Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7187 มุมมอง

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
2428
Controller not working แก้ไขแล้ว
2
มิ.ย. 25
782
3
มิ.ย. 24
3601
1
มี.ค. 23
3977
Selecting items for one2many relation แก้ไขแล้ว
2
ธ.ค. 22
14906