Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
21091 Visualizzazioni

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
Abbandona

Do you want to call your function in cron action?

Autore

@Manish Kumar Bohra: Yes

Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
ott 24
12161
1
mar 23
5797
2
dic 22
3333
1
mar 21
4047
1
giu 20
4465