Fix bug when add SII keys to invoice automatically based on tax definition
This commit is contained in:
parent
b95443233d
commit
070cdeb2b9
|
@ -168,7 +168,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:
|
||||
|
|
Loading…
Reference in New Issue