콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
6080 화면

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
4950
3
12월 22
14587
0
3월 15
3575
1
5월 25
1109
4
4월 25
7511