From 5533c88ed490b0eef2d93f0ea508eb3c358209aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 26 Feb 2012 18:41:57 +0100 Subject: [PATCH] Fix wizards to handle exception Add missing return state name on transition Fix typo --- sale.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sale.py b/sale.py index e94504ff06..fcbe107099 100644 --- a/sale.py +++ b/sale.py @@ -2021,6 +2021,7 @@ class HandleShipmentException(Wizard): }) sale_obj.workflow_trigger_validate(sale.id, 'shipment_ok') + return 'end' HandleShipmentException() @@ -2070,7 +2071,7 @@ class HandleInvoiceException(Wizard): def transition_handle(self, session): sale_obj = Pool().get('sale.sale') - to_recreate = [x.id for x in session.ask.recreate_moves] + to_recreate = [x.id for x in session.ask.recreate_invoices] domain_invoices = [x.id for x in session.ask.domain_invoices] sale = sale_obj.browse(Transaction().context['active_id']) @@ -2093,5 +2094,6 @@ class HandleInvoiceException(Wizard): }) sale_obj.workflow_trigger_validate(sale.id, 'invoice_ok') + return 'end' HandleInvoiceException()