Fix bug when add SII keys to invoice automatically based on tax definition

This commit is contained in:
Bernat Brunet Torruella 2019-01-03 15:58:16 +01:00
parent 33d8d41ae4
commit 7adc486d8c
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class Invoice:
def _set_sii_keys(self):
tax = None
for t in self.taxes:
if t.tax.tax_used:
if t.tax.sii_book_key:
tax = t.tax
break
if not tax: