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

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,
)