Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


"How to Trigger a Button Automatically when scheduler is Running"

on 12/13/13, 9:17 AM 699 views

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

Grahame Jordan
On 12/15/13, 6:49 AM

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.

on 12/16/13, 5:25 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 12/13/13, 9:17 AM
Seen: 699 times
Last updated: 3/16/15, 8:10 AM