From 8299de911df1f749440c772cc9ee41854268e577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Nov 2008 19:03:48 +0100 Subject: [PATCH] Fix return of get_invoice_line for type != 'line' for issue572 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 600778b964..57eb0c15ac 100644 --- a/purchase.py +++ b/purchase.py @@ -1011,7 +1011,7 @@ class PurchaseLine(OSV): res['type'] = line.type res['description'] = line.description if line.type != 'line': - return res + return [res] if line.purchase.invoice_method == 'order': res['quantity'] = line.quantity else: