Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1535 Widoki

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?

Awatar
Odrzuć
Autor

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

Niyas will probably know whether this should work in v16

Najlepsza odpowiedź

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
lip 24
1741
2
paź 22
3354
0
cze 21
2977
2
sty 21
10206
3
cze 17
7811