Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1137 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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)
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
квіт. 24
7201
1
лип. 25
673
5
трав. 25
18121
0
квіт. 25
1044
1
квіт. 25
1528