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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up