Always return list of taxes

issue11005
review377621002
This commit is contained in:
Cédric Krier committed 2022-02-12 19:34:40 +01:00
1 parent e152513b2d
commit be7c00ff70
1 file changed
+1 -1
+1 -1
View File
@@ -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,