Add beneficiaries to invoice addresses

This commit is contained in:
Raphael Michel
2019-01-12 16:52:32 +01:00
parent 228ab15900
commit af5aece639
9 changed files with 57 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ class Invoice(models.Model):
invoice_to_city = models.TextField(null=True)
invoice_to_country = CountryField(null=True)
invoice_to_vat_id = models.TextField(null=True)
invoice_to_beneficiary = models.TextField(null=True)
date = models.DateField(default=today)
locale = models.CharField(max_length=50, default='en')
introductory_text = models.TextField(blank=True)

View File

@@ -1643,6 +1643,10 @@ class InvoiceAddress(models.Model):
help_text=_('This reference will be printed on your invoice for your convenience.'),
blank=True
)
beneficiary = models.TextField(
verbose_name=_('Beneficiary'),
blank=True
)
def save(self, **kwargs):
if self.order: