コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
978 ビュー

Example Automating emails

アバター
破棄
著作者 最善の回答
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
457
0
3月 25
379
0
4月 25
135
2
4月 25
155
0
4月 25
151