From be7c00ff703e453f0dfa36fd5af1e469abc784d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 12 Feb 2022 19:34:40 +0100 Subject: [PATCH] Always return list of taxes issue11005 review377621002 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index f49a47f58e..415092df38 100644 --- a/invoice.py +++ b/invoice.py @@ -2154,7 +2154,7 @@ class InvoiceLine(sequence_ordered(), ModelSQL, ModelView, TaxableMixin): else: deductible_rate = 1 return [( - getattr(self, 'taxes', None) or [], + list(getattr(self, 'taxes', None)) or [], ((getattr(self, 'unit_price', None) or Decimal(0)) * deductible_rate), getattr(self, 'quantity', None) or 0,