forked from erp-dev/erp
fix: added permission for plate_order and printing_order api
This commit is contained in:
@@ -25,7 +25,7 @@ from .views.products import ProductQuickViewSet
|
||||
from .views.parameters import StateParameterViewSet
|
||||
from .views.users import CreateUserWithProfileView
|
||||
from .views.mingdaoyun import MDYPlateOrderStagingViewSet
|
||||
from .views.shipment import SalesItemByPrintingOrderView
|
||||
from .views.shipment import SalesItemByPrintingOrderView, ShipmentCreateView
|
||||
|
||||
# 创建 DRF Router for Stateflow
|
||||
stateflow_router = DefaultRouter()
|
||||
@@ -100,6 +100,11 @@ urlpatterns = [
|
||||
path('stateflow/', include(stateflow_router.urls)),
|
||||
|
||||
# Shipment API
|
||||
path(
|
||||
'shipment/shipments/',
|
||||
ShipmentCreateView.as_view(),
|
||||
name='shipment_create'
|
||||
),
|
||||
path(
|
||||
'shipment/sales-items/by-printing-order/<int:printing_order_id>/',
|
||||
SalesItemByPrintingOrderView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user