Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7027 Tampilan

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

Avatar
Buang
Jawaban Terbai

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
Avatar
Buang
Penulis

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.

Post Terkait Replies Tampilan Aktivitas
4
Jun 17
16729
2
Mei 25
2212
3
Des 24
6348
1
Jul 24
3110
1
Jun 24
2162