Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi there hope you are fine
I need some help please,i have table called students that hold all students in the system and it have all students data .I create a module called military states that when a student in the system gets 19 years old he should be added automatically to a table called (students military cards requests) and when the student get the card and enter it's number to the system it should be deleted from that table automatically. and change his states in the (students) table to 'delayed'
I need help to figure out how can the system search students birthdate evey day and check if a student gets 19 years old and add him to another table :D
Odoo has a built in CRON function that you can use to run a command/function every xx minutes or hours or days or weeks or months or years.... I think you get the idea.
Here is a forum post to get you started.
And you can peruse the Cron Job source code to see how it works. For example, defined in the source code are the valid intervals. They include: minutes, hours, days, work_days, weeks and months. I was wrong that there was an idea of years.
It also lists the column names that you can use in your .xml file when creating the cron job.
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/10/15, 12:17 PM|
|Seen: 696 times|
|Last updated: 3/16/15, 8:10 AM|