İçereği Atla
Menü
Bu soru işaretlendi
5 Cevaplar
21140 Görünümler

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
Vazgeç

Do you want to call your function in cron action?

Üretici

@Manish Kumar Bohra: Yes

En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Eki 24
12250
1
Mar 23
5817
2
Ara 22
3376
1
Mar 21
4081
1
Haz 20
4495