Use getattr to retrieve the tax_sign from the tax instance

This commit is contained in:
Cédric Krier committed 2017-06-29 19:55:27 +02:00
1 parent d56ac1daab
commit 40de2d11fc
1 file changed
+1 -1
+1 -1
View File
@@ -915,7 +915,7 @@ class Line(ModelSQL, ModelView):
else:
line_amount -= tax_line['amount']
tax_amount += tax_line['amount'] * \
tax_line['tax'][key + '_tax_sign']
getattr(tax_line['tax'], key + '_tax_sign')
line_amount = line.account.company.currency.round(
line_amount)
tax_amount = line.account.company.currency.round(