Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
1576 Tampilan

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
Buang
Penulis

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

Niyas will probably know whether this should work in v16

Jawaban Terbai

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
Buang
Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
CANCEL QUOTATIONS Diselesaikan
4
Jul 24
1755
2
Okt 22
3402
0
Jun 21
2996
2
Jan 21
10219
3
Jun 17
7831