mirror of
https://gitlab.com/datalifeit/trytond-account_es_sii
synced 2023-12-14 06:13:02 +01:00
Fix problem when set sii key from invoice tax information
This commit is contained in:
parent
984e061d68
commit
41756ed7e0
|
@ -168,7 +168,11 @@ class Invoice:
|
|||
return credit
|
||||
|
||||
def _set_sii_keys(self):
|
||||
tax = self.taxes and self.taxes[0]
|
||||
tax = None
|
||||
for t in self.taxes:
|
||||
if t.tax_used:
|
||||
tax = t
|
||||
break
|
||||
if not tax:
|
||||
return
|
||||
for field in _SII_INVOICE_KEYS:
|
||||
|
|
Loading…
Reference in a new issue