Skip to Content
Menu
This question has been flagged
1 Reply
1944 Views

Hi, 

I want to override the do_signup method in a custom module so that I can call an external API. But I am not sure how to inherit from a controller class that does not have a _name field.


Would you have a suggestion for this ?


Thanks, 

Paul

Avatar
Discard
Best Answer

Hello,


override do_signup method and write you code.


from odoo.addons.auth_signup.controllers.main import AuthSignupHome


class AuthSignupHome(AuthSignupHome):

    def do_signup(self, qcontext):

    qcontext = super(AuthSignupHome, self).do_signup(qcontext)

    "Write you code here"

    return qcontext


Regards,




Email:   odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Discard