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:
23
InvenTree/order/forms.py
Normal file
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'
|
||||
]
|
Reference in New Issue
Block a user