Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
5 Antworten
21136 Ansichten

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
Verwerfen

Do you want to call your function in cron action?

Autor

@Manish Kumar Bohra: Yes

Beste Antwort

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

Avatar
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Okt. 24
12245
1
März 23
5814
2
Dez. 22
3374
1
März 21
4081
1
Juni 20
4492