Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
1850 Visualizações

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

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

Niyas will probably know whether this should work in v16

Melhor resposta

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
Cancelar
Melhor resposta

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

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
jul. 24
1946
2
out. 22
3662
0
jun. 21
3154
2
jan. 21
10464
3
jun. 17
8041