Fix return of get_invoice_line for type != 'line' for issue572

This commit is contained in:
Cédric Krier committed 2008-11-14 19:03:48 +01:00
1 parent 1581d0a49f
commit 8299de911d
1 file changed
+1 -1
+1 -1
View File
@@ -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: