Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6121 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
черв. 21
4974
3
груд. 22
14648
0
бер. 15
3603
1
трав. 25
1124
4
квіт. 25
7595