From 40de2d11fc5672c14d37ebf3773b81aea1a08f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 29 Jun 2017 19:55:27 +0200 Subject: [PATCH] Use getattr to retrieve the tax_sign from the tax instance --- move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/move.py b/move.py index 73e23bde2c..42f45de863 100644 --- a/move.py +++ b/move.py @@ -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(