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!
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
            
                5
                
                    回复
                
            
        
        
            
                22115
                
                    查看
                
            
        
    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  | 14216 | ||
|  | 1 3月 23  | 6354 | ||
|  | 2 12月 22  | 3871 | ||
|  | 1 3月 21  | 4662 | ||
|  | 1 6月 20  | 4865 | 
 
                        
Do you want to call your function in cron action?
@Manish Kumar Bohra: Yes
Ok