Fix get_invoice_taxes when there is no invoice on the line
This commit is contained in:
1 parent
aed8082a43
commit
65f6f4e3ae
1 file changed
+3
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user