Fix return of get_invoice_line for type != 'line' for issue572
This commit is contained in:
1 parent
1581d0a49f
commit
8299de911d
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user