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
                
                    ตอบกลับ
                
            
        
        
            
                22109
                
                    มุมมอง
                
            
        
    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 | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
| 
            
                scheduled tasks ir.cron stops working
            
            
                    แก้ไขแล้ว
            
         |  | 3 ต.ค. 24  | 14212 | |
|  | 1 มี.ค. 23  | 6353 | ||
|  | 2 ธ.ค. 22  | 3869 | ||
|  | 1 มี.ค. 21  | 4649 | ||
|  | 1 มิ.ย. 20  | 4864 | 
 
                        
Do you want to call your function in cron action?
@Manish Kumar Bohra: Yes
Ok