Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1869 มุมมอง

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?

อวตาร
ละทิ้ง
ผู้เขียน

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

Niyas will probably know whether this should work in v16

คำตอบที่ดีที่สุด

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
CANCEL QUOTATIONS แก้ไขแล้ว
4
ก.ค. 24
1954
2
ต.ค. 22
3666
0
มิ.ย. 21
3166
2
ม.ค. 21
10470
3
มิ.ย. 17
8052