Skip to Content
Menu
This question has been flagged
5 Replies
21144 Rodiniai

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!

Portretas
Atmesti

Do you want to call your function in cron action?

Autorius

@Manish Kumar Bohra: Yes

Best Answer

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

Portretas
Atmesti
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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
spal. 24
12264
1
kov. 23
5821
2
gruod. 22
3379
1
kov. 21
4084
1
birž. 20
4502