Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1818 Представления

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
1925
2
окт. 22
3634
0
июн. 21
3141
2
янв. 21
10423
3
июн. 17
8011