Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1738 Vizualizări

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?

Imagine profil
Abandonează
Autor

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

Niyas will probably know whether this should work in v16

Cel mai bun răspuns

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?

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
iul. 24
1887
2
oct. 22
3547
0
iun. 21
3090
2
ian. 21
10350
3
iun. 17
7962