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

Hello, 

How can i replace an item in sales order after submission, by execute python code automation,

regards

아바타
취소

What do you mean by replacing an item?

베스트 답변

Hello Ahmed, I am assuming that you have automated this flow so that any sales order coming from Amazon gets confirmed automatically. I think the best method to do this is by resetting the order to Quotation state by clicking reset to draft button manually. This can be done in Python by calling action_draft() method on the particular sales order record. This will set the record to draft (Quotation) state and now you can make the changes necessary and confirm the order again. 

If you are looking for an alternative approach to allow you to edit a sales order in confirmed state, that will involve getting into the messy situation of changing fields from readonly to editable states in sales order state.

아바타
취소
작성자 베스트 답변

Usually I import sales orders from amazon, and some items become wrong into sales order, i want to delete wrong item and add correct one by executing python code in automation rule

아바타
취소
관련 게시물 답글 화면 활동
0
3월 25
1529
2
12월 24
21294
0
9월 24
1104
3
8월 24
2246
3
5월 24
1884