2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-24 15:50:54 +00:00

Updates for purchase order line items

- Display list of line items
- Add a form to create a new line item
This commit is contained in:
Oliver Walters
2019-06-05 20:59:30 +10:00
parent e199ed2281
commit be6b1ae2f8
9 changed files with 274 additions and 12 deletions

23
InvenTree/order/forms.py Normal file

@ -0,0 +1,23 @@
"""
Django Forms for interacting with Order objects
"""
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from InvenTree.forms import HelperForm
from .models import PurchaseOrder, PurchaseOrderLineItem
class EditPurchaseOrderLineItemForm(HelperForm):
class Meta:
model = PurchaseOrderLineItem
fields = [
'order',
'part',
'quantity',
'reference',
'received'
]