Hello,
I'm trying to create a function to send an email but I can't find anywhere how to do it with the new API.
I created the template that should be sent already.
@api.one
def action_email(self):
if not self.customer:
raise except_orm("...", ...")
customer_email = self.customer.email
if not customer_email or len(customer_email.strip()) <= 0:
raise except_orm("...", ...")
?????
Thanks.