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

Hi all, 

I want to call a funtion in the python interface-python code of an automated action.

The Issue: the method is part of another model, the Automation runs on Model crm.lead and the function is part of custom module crm.task.wizard.


How do I call create_task() from crm.task.wizard from the automated action? (see picture->doesnt work)




Thanks in advance!!

Friedrich

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

I would try this
for record in records:
record.action_create_task()

الكاتب

Hi Jaideep,
thank you but I decided to use the 'create a record' execution to stay more adaptable to process changes!
Thank you

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 23
2492
2
سبتمبر 23
2778
3
ديسمبر 24
6460
1
أكتوبر 24
1222
3
أبريل 24
2364