Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1181 Ansichten

Greetings,

I'm trying to make an automation rule in order to send an email to the approvers when an approval request is submitted in the Approvals module, but I just can't figure it out how to set the approvers'email addresses as recipients.


Can you please help me?


ODOO 17

Avatar
Verwerfen
Beste Antwort

Hi, would you mind sharing your code so that we can check it ?

This is an example to set email address as recipient.

template_id = self.env.ref('module_name.email_template_id').id
template = self.env['mail.template'].browse(template_id)
template['email_to'] = self.approvers_email
template.send_mail(self.id, force_send=True)
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Apr. 24
7260
1
Juli 25
750
5
Mai 25
18177
0
Apr. 25
1067
1
Apr. 25
1556