Example
Automating emails
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
977
Vues
Create an Email Template:
Go to Settings > Technical > Email > Templates.
Click Create and design your email template. Use placeholders like ${object.name} for the order number or ${object.partner_id.name} for the customer’s name.
Set Up Automated Actions:
Go to Settings > Technical > Automation > Scheduled Actions.
Create a new action with the following details:
Model: sale.order
Trigger: On Creation or On Update (depending on your workflow).
Action To Do: Execute Python Code.
Add below code to send the email automatically:
template = env.ref('your_module.email_template_order_confirmation')
for order in records:
order.message_post_with_template(template.id)
Best Regards,
Nikhil T
Accurates
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
mars 25
|
457 | ||
|
0
mars 25
|
379 | ||
|
0
avr. 25
|
135 | ||
|
2
avr. 25
|
155 | ||
|
0
avr. 25
|
151 |