Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1833 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Niyas will probably know whether this should work in v16

Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
CANCEL QUOTATIONS Đã xử lý
4
thg 7 24
1934
2
thg 10 22
3646
0
thg 6 21
3143
2
thg 1 21
10431
3
thg 6 17
8018