1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-11-02 08:34:32 +01:00
This commit is contained in:
Ehouarn
2025-10-31 17:48:24 +01:00
parent 30a598c0b7
commit 624f94823c
4 changed files with 251 additions and 5 deletions

View File

@@ -74,7 +74,6 @@ class InvoiceCreateView(ProtectQuerysetMixin, ProtectedCreateView):
# For each product, we save it
formset = ProductFormSet(self.request.POST, instance=form.instance)
print(formset)
if formset.is_valid():
for f in formset:
# We don't save the product if the designation is not entered, ie. if the line is empty