diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 6fc4fd9089e..932ad8bc064 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -1735,7 +1735,9 @@ class account_invoice_tax(osv.osv): company_currency = company_obj.read(cr, uid, [company_id], ['currency_id'])[0]['currency_id'][0] if currency_id and company_currency: amount = cur_obj.compute(cr, uid, currency_id, company_currency, amount, context={'date': date_invoice or fields.date.context_today(self, cr, uid)}, round=False) - return {'value': {'tax_amount': amount}} + tax_rec = self.browse(cr, uid, ids) + tax_sign = (tax_rec[0].tax_amount / tax_rec[0].amount) if tax_rec and tax_rec[0].amount else 1 + return {'value': {'tax_amount': amount * tax_sign}} _order = 'sequence' _defaults = { diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index ba4cc199fbf..b5bb1a542f3 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -255,7 +255,7 @@ - + @@ -387,7 +387,7 @@ - +