mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
04abe2b3d1
commit
eced012ece
@ -7,7 +7,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from InvenTree.forms import HelperForm
|
||||
|
||||
from .models import PurchaseOrder, PurchaseOrderLineItem
|
||||
from .models import PurchaseOrderLineItem
|
||||
|
||||
|
||||
class EditPurchaseOrderLineItemForm(HelperForm):
|
||||
@ -20,4 +20,4 @@ class EditPurchaseOrderLineItemForm(HelperForm):
|
||||
'quantity',
|
||||
'reference',
|
||||
'received'
|
||||
]
|
||||
]
|
||||
|
@ -29,6 +29,7 @@ InvenTree | {{ order }}
|
||||
</div>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Purchase Order Details</h4>
|
||||
<table class='table'>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
|
@ -11,7 +11,7 @@ from django.forms import HiddenInput
|
||||
from .models import PurchaseOrder, PurchaseOrderLineItem
|
||||
from .forms import EditPurchaseOrderLineItemForm
|
||||
|
||||
from InvenTree.views import AjaxCreateView, AjaxUpdateView, AjaxDeleteView
|
||||
from InvenTree.views import AjaxCreateView, AjaxUpdateView
|
||||
|
||||
from InvenTree.status_codes import OrderStatus
|
||||
|
||||
@ -88,7 +88,6 @@ class POLineItemCreate(AjaxCreateView):
|
||||
|
||||
return form
|
||||
|
||||
|
||||
def get_initial(self):
|
||||
""" Extract initial data for the line item.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user