From d1b5683afade801f4f9f8414feb4f8bed1abbc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 1 Nov 2019 22:50:21 +0100 Subject: [PATCH] Group taxes also per base sign This allow to report in tax code the invoice and credit note separately. issue8759 review282291002 --- tax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tax.py b/tax.py index 8a4a846e65..51ad25539c 100644 --- a/tax.py +++ b/tax.py @@ -1059,7 +1059,7 @@ class _TaxKey(dict): self.update(kwargs) def _key(self): - return (self['account'], self['tax']) + return (self['account'], self['tax'], self['base'] >= 0) def __eq__(self, other): if isinstance(other, _TaxKey):