Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1553 Zobrazení

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
Zrušit
Autor

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

Niyas will probably know whether this should work in v16

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
čvc 24
1750
2
říj 22
3383
0
čvn 21
2985
2
led 21
10212
3
čvn 17
7823