Fix syntax error

This commit is contained in:
Raphael Michel
2025-11-14 09:57:29 +01:00
parent eb740204d4
commit ef9863518b

View File

@@ -259,7 +259,7 @@ class Invoice(models.Model):
parts = [
self.invoice_from_name,
self.invoice_from,
" ".join(s for s in [self.invoice_from_zipcode, self.invoice_from_city, state_name] if s)
" ".join(s for s in [self.invoice_from_zipcode, self.invoice_from_city, state_name] if s),
self.invoice_from_country.name if self.invoice_from_country else "",
]
return '\n'.join([p.strip() for p in parts if p and p.strip()])