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

I'm creating cron method for auto scheduling for passport expiry date. My concept is when expire date is over, that employee name and expire date will send to administrator's mail id. I got employee name and expiry date and I updated in mail.mail form, values all are come there. But I can't click automatically send button to Send a Mail.

Thanks and regards Sridharan G

アバター
破棄
最善の回答

I am sending mail via a scheduler job.

Create a scheduler definition xml file. Look for "ir_cron_scheduler_action" in the code for an example.

In the model definition py file create a function "run_scheduler" def run_scheduler(self, cr, uid, automatic=False, use_new_cursor=False, context=None): # Create mail body etc. Then call: mail_obj.schedule_with_attach(params)

Hope this helps

アバター
破棄
著作者

Thanks for Reply, tried another method it is working fine, now i able to send automatic mail, when date is expire.

関連投稿 返信 ビュー 活動
2
4月 23
2930
0
3月 15
5617
0
5月 21
3693
2
4月 20
15808
4
3月 19
16359