Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
5 Besvarelser
21113 Visninger

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
Kassér

Do you want to call your function in cron action?

Forfatter

@Manish Kumar Bohra: Yes

Bedste svar

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
3
okt. 24
12187
1
mar. 23
5809
2
dec. 22
3356
1
mar. 21
4059
1
jun. 20
4482