Example
Automating emails
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Project
- MRP
This question has been flagged
1
Odpoveď
990
Zobrazenia
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
2
mar 25
|
461 | ||
|
0
mar 25
|
388 | ||
|
0
apr 25
|
151 | ||
|
2
apr 25
|
162 | ||
|
0
apr 25
|
156 |