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 is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
Also you can look at cron examples in Odoo modules such as: Gamification (1 per Day), Survey (1 per Hour), or Calendar (1 per 30 Minutes).
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
sept 16
|
6806 | ||
How to refresh form view automatic
Resuelto
|
|
3
abr 15
|
10288 | |
|
0
mar 15
|
4073 | ||
|
0
abr 15
|
3475 | ||
|
0
abr 22
|
3613 |
And what help are you looking for?
Thanks for quick replay Mr. Stephen Mack [1] :) . I go for the link you provided but i still confused.Are there any documentation that could be more clarification ? [1] https://www.odoo.com/forum/help-1/user/298649
well development documentation is pretty light. I always search in github.com/odoo/odoo for development examples. When I get some more time I will see what I can find.
i will search too :) thanks for help :D
Updated my answer with odoo module examples for Daily, Hourly or Minute cron jobs.
thanks for help Mr. Stephen Mack i appreciate that :) i understand cron funct but could you help me here :D https://www.odoo.com/forum/help-1/question/automated-action-birthday-19-75996 i will be thankful :D