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

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
1317
2
12月 24
21090
0
9月 24
1008
3
8月 24
2095
3
5月 24
1768