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

Hi, I have searched trough the documentation, and it seems that it is not possible to start/trigger a workflow trough the API?

My scenario is fairly simple.. I create a sales order (draft quotation), and would like the workflow to handle the transition into an actual sales order, but want to initiate this through the API, as I create the sales order here.

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

For others playing around with this.. The Object module has a method called exec_workflow. Signature (C#): object Execute_workflow(string db, int user, string password, string model, string signal, object id);

The trick is to find the id of the correct signal to call.. but Workflows -> Transitions is a good place to start the hunt.

 

If anybody else has the need to communicate with an Odoo using C# .NET, then contact me.. I am building a library to streamline this for you.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يناير 17
2930
2
أبريل 17
4907
1
أغسطس 25
124
1
أغسطس 25
368
2
يوليو 25
2815