تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1705 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
CANCEL QUOTATIONS تم الحل
4
يوليو 24
1868
2
أكتوبر 22
3528
0
يونيو 21
3056
2
يناير 21
10319
3
يونيو 17
7948