Merge pull request #1521 from ae-utbm/account-dump-msg

Add success message when refunding AE account
This commit is contained in:
thomas girod authored and GitHub committed 2026-10-21 16:35:05 +02:00
commit 87533a7327
2 files changed
+8 -2

No files matched your search

+2 -1
View File
@@ -408,11 +408,12 @@ class CounterRefillingListView(
return super().get_context_data(**kwargs) | {"counter": self.counter} return super().get_context_data(**kwargs) | {"counter": self.counter}
class RefoundAccountView(UserPassesTestMixin, FormView): class RefoundAccountView(UserPassesTestMixin, SuccessMessageMixin, FormView):
"""Create a selling with the same amount as the current user money.""" """Create a selling with the same amount as the current user money."""
template_name = "counter/refound_account.jinja" template_name = "counter/refound_account.jinja"
form_class = CloseCustomerAccountForm form_class = CloseCustomerAccountForm
success_message = _("%(user)s's AE account has been emptied")
def test_func(self): def test_func(self):
return self.request.user.is_root or self.request.user.is_in_group( return self.request.user.is_root or self.request.user.is_in_group(
+6 -1
View File
@@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-09 21:44+0200\n" "POT-Creation-Date: 2026-10-19 19:45+0200\n"
"PO-Revision-Date: 2016-07-18\n" "PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Maréchal <thomas.girod@utbm.fr\n" "Last-Translator: Maréchal <thomas.girod@utbm.fr\n"
"Language-Team: AE info <ae.info@utbm.fr>\n" "Language-Team: AE info <ae.info@utbm.fr>\n"
@@ -4413,6 +4413,11 @@ msgstr ""
msgid "returnable product : %(returnable)s -> %(returned)s" msgid "returnable product : %(returnable)s -> %(returned)s"
msgstr "produit consigné : %(returnable)s -> %(returned)s" msgstr "produit consigné : %(returnable)s -> %(returned)s"
#: counter/views/admin.py
#, python-format
msgid "%(user)s's AE account has been emptied"
msgstr "Le compte de %(user)s a été vidé"
#: counter/views/cash.py #: counter/views/cash.py
msgid "10 cents" msgid "10 cents"
msgstr "10 centimes" msgstr "10 centimes"