コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6097 ビュー

How can I set delivery order to state "done" with xmlrpc? 

I'm using 

$client->write('stock.move', array(58), ['state' => "done"]);

It does work but it does not update on hand quantity, only forecast quantity is getting updated.

Is there any way to call "exec_workflow" from PHP?

アバター
破棄
最善の回答

Hello,

To transfer a product you should create a picking order, add your stock move to it and call validate function of stock picking.

You have added a sale.order tag in this question, if you are trying to change status of delivery of sale order:

-call validate function(do_new_transfer) in stock.picking to update values and change status to done

-when you call the validate function you should pass all argumentss correctly

This link may help you to call methods from xml-rpc

アバター
破棄
関連投稿 返信 ビュー 活動
3
6月 21
4959
3
12月 22
14607
0
3月 15
3583
1
5月 25
1112
4
4月 25
7532