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

I am trying to cancel a large amount of sales orders at once. I have an action that does work to confirm multiple quotes at once, so I tried to just adjust that server action to cancel, but I can't get it to work.


for record in records:

  record.action_cancel()


Anything I should adjust?

アバター
破棄
著作者

We have v16. I am trying to cancel confirmed sales orders in bulk.

Niyas will probably know whether this should work in v16

最善の回答

In v17 and v18 this is available as standard 

This will display a warning message if you try to cancel a confirmed sales order.

Maybe you are getting the same message?

アバター
破棄
最善の回答

Use try...except to catch and see the error.

アバター
破棄
関連投稿 返信 ビュー 活動
4
7月 24
1940
2
10月 22
3657
0
6月 21
3152
2
1月 21
10454
3
6月 17
8029