Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5 Ответы
21098 Представления

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!

Аватар
Отменить

Do you want to call your function in cron action?

Автор

@Manish Kumar Bohra: Yes

Лучший ответ

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

Аватар
Отменить
Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
окт. 24
12170
1
мар. 23
5802
2
дек. 22
3342
1
мар. 21
4052
1
июн. 20
4478