I have this method:
@api.model
def send_mail_function(self):
template_id = self.env.ref('opencloud_cashflows.email_template_loan')
if template_id:
template_id.send_mail(self.id, force_send=True)
return True
I call this from a website page like this:
<center><input id="send_mail_function" class="btn btn-primary btn-lg" name="send_mail_function" value="Pedir préstamo al Banco" type="submit" style="background-color:#e67e22;"/></center>
But it doesn't do anything, is there something else I need to do to call this method from frontend/website on Odoo?
I'm on Odoo v9 community.