2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Filter API by overdue status

This commit is contained in:
Oliver Walters
2020-12-18 12:40:47 +11:00
parent b21c6f0b99
commit c34196538b
5 changed files with 41 additions and 2 deletions

View File

@ -128,6 +128,13 @@ class EditSalesOrderForm(HelperForm):
super().__init__(*args, **kwargs)
# TODO: Improve this using a better date picker
target_date = forms.DateField(
widget=forms.DateInput(
attrs={'type': 'date'},
)
)
class Meta:
model = SalesOrder
fields = [
@ -135,6 +142,7 @@ class EditSalesOrderForm(HelperForm):
'customer',
'customer_reference',
'description',
'target_date',
'link'
]