Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7124 มุมมอง

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
มิ.ย. 17
17008
importing Purchase Order shown as a RFQ แก้ไขแล้ว
2
พ.ค. 25
2347
3
ธ.ค. 24
6953
1
ก.ค. 24
3357
Purchase Product Description Incorrect แก้ไขแล้ว
1
มิ.ย. 24
2300