Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odgovori
21099 Prikazi

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
Opusti

Do you want to call your function in cron action?

Avtor

@Manish Kumar Bohra: Yes

Best Answer

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

Avatar
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
okt. 24
12170
1
mar. 23
5803
2
dec. 22
3342
1
mar. 21
4053
1
jun. 20
4478