include the actual attachment when sending to e-conomic

This commit is contained in:
Thomas Steen Rasmussen 2018-08-30 13:17:52 +02:00
parent db73051a23
commit b56b9c27b4
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class Expense(CampRelatedModel, UUIDModel):
formatdict=dict(expense=self),
subject="Expense for %s" % self.camp.title,
to_recipients=[settings.ACCOUNTINGSYSTEM_EMAIL],
attachment=self.invoice.path,
attachment=self.invoice.read(),
attachment_filename=self.invoice.file.name,
)