콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7228 화면

Hi All,

On Confirm Button

When I have more than one PO line , i create new two new PO its working fine,

But i want delele or cancel existing PO when i click on Confirm button, How can i ?

I use wf_service.trg_validate(uid, 'purchase.order', ids[0], 'purchase_cancel', cr) but it give me error i alos try to unlink method it give me error.

thanks

아바타
취소
베스트 답변

Before you can cancel a PO or SO you first have to cancel all related shippings.

In your case you have to

  • Search for stock.picking where purchase_id is the ID of your PO
  • Trigger Cancel of those pickings
  • Trigger Cancel of the PO
아바타
취소
작성자

Thanks for the reply

Hi,

I have PO in Done State and Shipment is also DONE, How to delete it now?

Or anyway to cancel it?

Thanks in advance for help.

관련 게시물 답글 화면 활동
4
6월 17
17122
2
5월 25
2437
3
12월 24
7182
1
7월 24
3503
1
6월 24
2376