跳至内容
菜单
此问题已终结
1 回复
4180 查看

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
1月 17
3012
2
4月 17
4985
1
8月 25
394
1
8月 25
430
1
8月 25
654