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:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
            
                5
                
                    Vastaukset
                
            
        
        
            
                22112
                
                    Näkymät
                
            
        
    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
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
| 
            
                scheduled tasks ir.cron stops working
            
            
                    Ratkaistu
            
         |  | 3 lokak. 24  | 14216 | |
|  | 1 maalisk. 23  | 6354 | ||
|  | 2 jouluk. 22  | 3871 | ||
|  | 1 maalisk. 21  | 4655 | ||
|  | 1 kesäk. 20  | 4865 | 
 
                        
Do you want to call your function in cron action?
@Manish Kumar Bohra: Yes
Ok