コンテンツへスキップ
メニュー
この質問にフラグが付けられました
5 返信
21090 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
3
10月 24
12161
1
3月 23
5795
2
12月 22
3333
1
3月 21
4043
1
6月 20
4465