view: Convertidos a solo lecturas los campos de resumen de compra.
This commit is contained in:
parent
c993225daf
commit
83bab78182
@ -35,9 +35,9 @@ class PurchaseLineForm(forms.ModelForm):
|
|||||||
]
|
]
|
||||||
|
|
||||||
class PurchaseSummaryForm(forms.Form):
|
class PurchaseSummaryForm(forms.Form):
|
||||||
quantity_lines = forms.IntegerField()
|
quantity_lines = forms.IntegerField(widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
|
||||||
quantity_products = forms.IntegerField()
|
quantity_products = forms.IntegerField(widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
|
||||||
ammount = forms.DecimalField(max_digits=10, decimal_places=2)
|
ammount = forms.DecimalField(max_digits=10, decimal_places=2, widget=forms.NumberInput(attrs={'readonly': 'readonly'}))
|
||||||
|
|
||||||
LineaFormSet = inlineformset_factory(
|
LineaFormSet = inlineformset_factory(
|
||||||
Sale,
|
Sale,
|
||||||
|
Loading…
Reference in New Issue
Block a user