From dedfc4f42e463dc1f87b9b574c17c4b565f564e0 Mon Sep 17 00:00:00 2001 From: Martin Quinteros Date: Fri, 29 Sep 2023 08:42:15 -0300 Subject: [PATCH] [FIX] Fix debit note fix tax --- account_invoice_tax/__manifest__.py | 4 ++-- account_invoice_tax/wizards/account_invoice_tax.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/account_invoice_tax/__manifest__.py b/account_invoice_tax/__manifest__.py index 7c784c85..cf81c8b0 100644 --- a/account_invoice_tax/__manifest__.py +++ b/account_invoice_tax/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Account Invoice Tax', - 'version': "16.0.1.0.0", + 'version': "16.0.1.2.0", 'author': 'ADHOC SA', 'category': 'Localization', 'depends': [ @@ -15,7 +15,7 @@ 'web.assets_backend': [ 'account_invoice_tax/static/src/xml/**/*', ], - }, + }, 'license': 'AGPL-3', 'installable': True, 'auto_install': False, diff --git a/account_invoice_tax/wizards/account_invoice_tax.py b/account_invoice_tax/wizards/account_invoice_tax.py index 3d5d782d..43b3eb5f 100644 --- a/account_invoice_tax/wizards/account_invoice_tax.py +++ b/account_invoice_tax/wizards/account_invoice_tax.py @@ -54,7 +54,7 @@ def _get_amount_updated_values(self): if move_currency and move_currency != company_currency: return {'amount_currency': self.amount if debit else -self.amount} - return {'debit': debit, 'credit': credit, 'balance': self.amount} + return {'debit': debit, 'credit': credit, 'balance': self.amount if debit else -self.amount} def add_tax_and_new(self): self.add_tax()