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

how to write a Python function who is called automatically in openerp without an event or a button, i have writed the function but now i called it with a button, but it must be called automatically

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

If you want to call the function automatically based on some intervals of time, you can create scheduler(Settings/Technical/Scheduler/Scheduled Actions).

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanx nehal for your answer but i want to program it with python, if you know hoaw ??

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

Hi you can write the code for same  Scheduled Actions in odoo in your XML like below.
https://www.youtube.com/watch?v=dS3EVb-Xjms&ab_channel=CybrosysTechnologies


I know its a very late answer and you don't need i anymore but for others who are facing same problem.

Ả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 23
5818
Datetime in python Đã xử lý
7
thg 6 21
24473
11
thg 9 19
38259
0
thg 5 16
3777
0
thg 4 16
4101