Skip to content
Snippets Groups Projects
Commit 075cb1b5 authored by ynerant's avatar ynerant
Browse files

Transaction can't be attached to a closed remittance

parent 432f14d9
No related branches found
No related tags found
1 merge request!61Tresorerie
Pipeline #8025 passed with stages
in 3 minutes and 37 seconds
......@@ -121,6 +121,8 @@ class LinkTransactionToRemittanceForm(forms.ModelForm):
# Add submit button
self.helper.add_input(Submit('submit', _("Submit"), attr={'class': 'btn btn-block btn-primary'}))
self.fields["remittance"].queryset = Remittance.objects.filter(closed=False)
def clean_last_name(self):
"""
Replace the first name in the information of the transaction.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment