Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5010 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

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

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ต.ค. 23
5711
Datetime in python แก้ไขแล้ว
7
มิ.ย. 21
24346
11
ก.ย. 19
38124
0
พ.ค. 16
3657
0
เม.ย. 16
4018