Fix #195 -- Add message explaining invoice address updating process (#196)

Adds messages both pre- and post-update explaining to the user that the
invoice itself will not be automatically regenerated and that support
interaction is required for this step. Might reduce user frustration.
This commit is contained in:
Tobias Kunze
2016-08-30 13:22:24 +02:00
committed by Raphael Michel
parent 854fb1218e
commit 96dbfc304a
2 changed files with 10 additions and 0 deletions

View File

@@ -264,6 +264,10 @@ class OrderModify(EventViewMixin, OrderDetailMixin, QuestionsViewMixin, Template
return self.get(request, *args, **kwargs)
self.invoice_form.save()
self.order.log_action('pretix.event.order.modified')
if self.invoice_form.has_changed():
success_message = ('Your invoice address has been updated. Please contact us if you need us '
'to regenerate your invoice.')
messages.success(self.request, _(success_message))
return redirect(self.get_order_url())
def get(self, request, *args, **kwargs):