Se rendre au contenu
Menu
Cette question a été signalée
5 Réponses
21092 Vues

I'm trying to see if post_init_hook is possible for creation of ir.cron / Scheduled Action. If it is possible, how to create ir.cron / Scheduled Action in python? Thanks!

Avatar
Ignorer

Do you want to call your function in cron action?

Auteur

@Manish Kumar Bohra: Yes

Meilleure réponse

Look into this: https://www.odoo.yenthevg.com/creating-automated-actions-in-odoo/

Avatar
Ignorer
Meilleure réponse

Hello, 

You can move to Schedule Actions --> Select your cron 

Select Model --> sale.order(For Eg.)

Select Action To Do --> Execute Python Code

Below show a page (Python Code)

where you call your method like this model.method_name()

Thanks

Avatar
Ignorer
Publications associées Réponses Vues Activité
3
oct. 24
12161
1
mars 23
5798
2
déc. 22
3333
1
mars 21
4049
1
juin 20
4466