From ce9aa1fc446fcec0ddbc8cd6a5919718df0c1dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Oct 2012 17:54:17 +0200 Subject: [PATCH] Fix test on to_recreate in invoice exception handling --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index fa4bdb7f1e..b5b5d7bad7 100644 --- a/purchase.py +++ b/purchase.py @@ -1938,7 +1938,7 @@ class HandleInvoiceException(Wizard): for invoice in purchase.invoices: if invoice not in domain_invoices or invoice in skip: continue - if invoice.id in to_recreate: + if invoice in to_recreate: invoices_recreated.append(invoice.id) else: invoices_ignored.append(invoice.id)