تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
4764 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أكتوبر 23
5504
Datetime in python تم الحل
7
يونيو 21
24042
11
سبتمبر 19
37730
0
مايو 16
3461
0
أبريل 16
3866