hi im trying to create a send email button but when i click it it doesnt send it immediately i check email menu on technical and emails are in outgoing stage
i have already configured outgoing email
this is my code:
def action_send_email_qs(self):
template = self.env.ref("sale_modify.email_template_quote")
for rec in self:
if rec.partner_id.email:
email_values = {'subject': 'Test OM'}
template.send_mail(rec.id, force_send=True)
help me plz and I will mark your answer as correct!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
Hi,
You can try this method.
def action_send_email_qs(self):
template = self.env.ref('sale_modify.email_template_quote')
for rec in self:
if rec.partner_id.email:
template.send_mail(self.id, force_send=True,
email_values={
'email_to': rec.partner_id.email,
'subject': 'Test OM'
})
Regards
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
1
jun. 22
|
4118 | ||
|
1
jan. 22
|
2509 | ||
|
2
ago. 23
|
2428 | ||
|
2
mai. 23
|
2638 | ||
|
1
abr. 23
|
2829 |