Skip to Content
Menu
This question has been flagged
5 Replies
19322 Views

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
Discard

Do you want to call your function in cron action?

Author

@Manish Kumar Bohra: Yes

Best Answer

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

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
3
Oct 24
8147
1
Mar 23
4831
2
Dec 22
2552
1
Mar 21
2651
1
Jun 20
3684