This question has been flagged
2327 Views

I have written the code to send an email using email template in odoo10 and that email contain one link. What I want to do when I click on that link from my gmail it need to call to odoo function that will trigger another email template.

This is the code I have written in the first email template to create a link.

<a href="" style="background-color: #1abc9c; padding: 20px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;" class="o_default_snippet_text">Hello</a>

and when I link on this link from my gmail. I want to call  get_access_action().  

def get_access_action(self):

    

 

Avatar
Discard