Example
Automating emails
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
940
Lượt xem
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
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 3 25
|
449 | ||
|
0
thg 3 25
|
350 | ||
|
0
thg 4 25
|
74 | ||
|
2
thg 4 25
|
124 | ||
|
0
thg 4 25
|
99 |