Fixed invoice generation

This commit is contained in:
Raphael Michel
2016-06-05 18:14:58 +02:00
parent e692e26683
commit 4d886b3d98

View File

@@ -161,7 +161,7 @@ class OrderInvoiceCreate(EventViewMixin, OrderDetailMixin, View):
messages.error(self.request, _('An invoice for this order already exists.'))
else:
generate_invoice(self.order)
self.order.log_action('pretix.event.order.invoice.generate', user=self.request.user)
self.order.log_action('pretix.event.order.invoice.generate')
messages.success(self.request, _('The invoice has been generated.'))
return redirect(self.get_order_url())