From 4a281754db610d004701ce8edd9aeed32e766af4 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Mon, 1 Jun 2015 18:03:21 +0200 Subject: [PATCH] [FIX] purchase: add transition invoice_end to cancel in the workflow If the state of the PO is 'approved', there is no transition foreseen in order to cancel the PO. The user might be blocked in the following situation: - Create a purchase order with invoicing set as Based on incoming shipment - Validate the purchase order, create the shipment - Then, cancel it (the shipment) - Return back in the purchase order, the PO should be in shipping exception - Hit the "manually corrected" - Then, try to cancel the PO: nothing happens. opw-641014 --- addons/purchase/purchase_workflow.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/purchase/purchase_workflow.xml b/addons/purchase/purchase_workflow.xml index fe6b5a3f045..771bed2685a 100644 --- a/addons/purchase/purchase_workflow.xml +++ b/addons/purchase/purchase_workflow.xml @@ -220,6 +220,12 @@ invoiced + + + + purchase_cancel + invoice_method<>'order' +