Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
21103 Zobrazení

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
Zrušit

Do you want to call your function in cron action?

Autor

@Manish Kumar Bohra: Yes

Nejlepší odpověď

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
říj 24
12173
1
bře 23
5805
2
pro 22
3349
1
bře 21
4057
1
čvn 20
4480