跳至内容
菜单
此问题已终结
5 回复
21104 查看

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
12173
1
3月 23
5805
2
12月 22
3349
1
3月 21
4057
1
6月 20
4480