Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
21100 Lượt xem

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!

Ảnh đại diện
Huỷ bỏ

Do you want to call your function in cron action?

Tác giả

@Manish Kumar Bohra: Yes

Câu trả lời hay nhất

Look into this: https://www.odoo.yenthevg.com/creating-automated-actions-in-odoo/

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 10 24
12170
1
thg 3 23
5803
2
thg 12 22
3342
1
thg 3 21
4053
1
thg 6 20
4478