mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-11-01 16:14:30 +01:00
Alpha version (without tests)
This commit is contained in:
@@ -74,6 +74,7 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user