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

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
1936
2
10月 22
3649
0
6月 21
3143
2
1月 21
10436
3
6月 17
8020