Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
1747 Weergaven

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
Annuleer
Auteur

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

Niyas will probably know whether this should work in v16

Beste antwoord

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
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
jul. 24
1894
2
okt. 22
3559
0
jun. 21
3096
2
jan. 21
10361
3
jun. 17
7971