Use getattr to retrieve the tax_sign from the tax instance
This commit is contained in:
1 parent
d56ac1daab
commit
40de2d11fc
1 file changed
+1
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user