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
回覆
21143
瀏覽次數
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
|
12264 | ||
|
1
3月 23
|
5821 | ||
|
2
12月 22
|
3379 | ||
|
1
3月 21
|
4084 | ||
|
1
6月 20
|
4502 |
Do you want to call your function in cron action?
@Manish Kumar Bohra: Yes
Ok