تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7199 أدوات العرض

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
أغسطس 25
2432
2
يونيو 25
785
3
يونيو 24
3603
1
مارس 23
3982
2
ديسمبر 22
14909