Example
Automating emails
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
2588
查看
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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
3月 25
|
1470 | ||
|
0
3月 25
|
1189 | ||
|
3
8月 25
|
887 | ||
|
3
7月 25
|
344 | ||
|
2
7月 25
|
281 |