Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
5 Replies
21115 Tampilan

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
Buang

Do you want to call your function in cron action?

Penulis

@Manish Kumar Bohra: Yes

Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
3
Okt 24
12189
1
Mar 23
5809
2
Des 22
3357
1
Mar 21
4059
1
Jun 20
4482