Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1858 Переглядів

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
1947
2
жовт. 22
3662
0
черв. 21
3155
2
січ. 21
10465
3
черв. 17
8045