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

Hello,
i needed to create a custom cron job that change de default code of my product but when i checked the "Scheduled Actions" list i found out that none of my actions is working.
on logs we found : 

odoo.addons.base.ir.ir_cron: Starting job `Action name`.

odoo.addons.base.ir.ir_cron: Job `Action name` done.

to be sure that the action don't run i made it as simple as this :
@api.model

def affect_default_code(sefl):

print ("hello world")


still nothing is being printed .
please can someone help me fix this 

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

It should work. I was having the same problem, then I found this Youtube video:
https://www.youtube.com/watch?v=_P_AVSNr6uU
If you followed it you should be able to see your "hello world" message.

Cheers.

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

Hi,

Please use the following link for information about scheduled actions

Scheduled Actions in Odoo

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 23
2911
0
thg 3 15
5587
1
thg 3 15
5878
0
thg 5 20
3968
0
thg 5 21
3681