1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Billing -> Invoice

This commit is contained in:
Yohann D'ANELLO
2020-03-22 01:22:27 +01:00
parent 18f6daf2ac
commit 4f343fc99f
12 changed files with 333 additions and 251 deletions

View File

@ -4,17 +4,17 @@
from crispy_forms.helper import FormHelper
from django import forms
from .models import Billing, Product
from .models import Invoice, Product
class BillingForm(forms.ModelForm):
class InvoiceForm(forms.ModelForm):
class Meta:
model = Billing
model = Invoice
fields = '__all__'
ProductFormSet = forms.inlineformset_factory(
Billing,
Invoice,
Product,
fields='__all__',
extra=1,