Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
5 Antwoorden
21139 Weergaven

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
Annuleer

Do you want to call your function in cron action?

Auteur

@Manish Kumar Bohra: Yes

Beste antwoord

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
okt. 24
12250
1
mrt. 23
5817
2
dec. 22
3376
1
mrt. 21
4081
1
jun. 20
4495