Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
5 Vastaukset
21088 Näkymät

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
Hylkää

Do you want to call your function in cron action?

Tekijä

@Manish Kumar Bohra: Yes

Paras vastaus

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

Avatar
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
lokak. 24
12161
1
maalisk. 23
5795
2
jouluk. 22
3333
1
maalisk. 21
4043
1
kesäk. 20
4465