Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1530 Vistas

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
Descartar
Autor

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

Niyas will probably know whether this should work in v16

Mejor respuesta

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
jul 24
1740
2
oct 22
3340
0
jun 21
2976
2
ene 21
10202
3
jun 17
7807