Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
5 Відповіді
21097 Переглядів

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
5801
2
груд. 22
3342
1
бер. 21
4052
1
черв. 20
4478