Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
1644 Prikazi

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?

Avatar
Opusti
Avtor

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

Niyas will probably know whether this should work in v16

Best Answer

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?

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
jul. 24
1789
2
okt. 22
3464
0
jun. 21
3027
2
jan. 21
10261
3
jun. 17
7896