Commit d27d6705 authored by chirac's avatar chirac

Merge branch 'validation' into 'master'

Fix #100 : validation des factures plus explicite

Closes #100

See merge request federez/re2o!158
parents e064db62 f8859796
This diff is collapsed.
......@@ -651,6 +651,10 @@ def control(request):
if control_invoices_form.is_valid():
control_invoices_form.save()
reversion.set_comment("Controle")
messages.success(
request,
_("Your changes have been properly taken into account.")
)
return redirect(reverse('cotisations:control'))
return render(request, 'cotisations/control.html', {
'facture_list': invoice_list,
......
......@@ -189,7 +189,7 @@ def can_change(*targets):
method 'can_change'. See `acl_base_decorator` documentation for further
details.
"""
return acl_base_decorator('can_change', *targets)
return acl_base_decorator('can_change', *targets, on_instance=False)
def can_delete(*targets):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment