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

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!

الصورة الرمزية
إهمال

Do you want to call your function in cron action?

الكاتب

@Manish Kumar Bohra: Yes

أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أكتوبر 24
12241
1
مارس 23
5814
2
ديسمبر 22
3374
1
مارس 21
4077
1
يونيو 20
4491