Fix get_invoice_taxes when there is no invoice on the line

This commit is contained in:
Cédric Krier committed 2009-10-12 16:50:19 +02:00
1 parent aed8082a43
commit 65f6f4e3ae
1 file changed
+3
+3
View File
@@ -1513,6 +1513,9 @@ class InvoiceLine(ModelSQL, ModelView):
res = {}
for line in self.browse(cursor, user, ids, context=context):
if not line.invoice:
res[line.id] = False
continue
ctx = context.copy()
ctx.update(invoice_obj.get_tax_context(cursor, user, line.invoice,
context=context))