Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
21132 Vizualizări

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!

Imagine profil
Abandonează

Do you want to call your function in cron action?

Autor

@Manish Kumar Bohra: Yes

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
oct. 24
12240
1
mar. 23
5814
2
dec. 22
3372
1
mar. 21
4072
1
iun. 20
4491